yumコマンドの--installrootオプションの使い方について教えてください。
yumコマンドでも/usr以外にインストールできる、と考えて--installrootを
指定しました。
$ sudo yum --installroot=/tools/ install R
では、下記のエラーとなって、
One of the configured repositories failed (Unknown), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this:
$ sudo yum --installroot=/tools/ --releasever=7 install R
でインストールでききましたが、インストール先を見ると、当たり前ですが、
関連のファイルもインストルされているようでした。
[hoge@fuga tools]$ ls /tools/ bin dev home lib64 mnt proc run srv tmp var boot etc lib media opt root sbin sys usr
(この時点で、ちょっと目的として違うかなぁと感じつつ)
インストール先にはパスが通っていないので、フルパスで実行してみると
[hoge@fuga tools]$ /tools/usr/bin/R /tools/usr/bin/R: line 238: /usr/lib64/R/etc/ldpaths: No such file or directory
のエラーになりました。
[/tools/usr/bin/R]
238 . "${R_HOME}/etc${R_ARCH}/ldpaths"
でしたので、
[hoge@fuga tools]$ ls /tools/usr/lib64/R/etc/ldpaths /tools/usr/lib64/R/etc/ldpaths [hoge@fuga tools]$ export R_HOME="/tools/usr/lib64/R" [hoge@fuga tools]$ echo $R_HOME /tools/usr/bin/R
と指定しても実行してみましたが、変化がなかったので、[/tools/usr/bin/R]の最初を見ると
4 R_HOME_DIR=/usr/lib64/R
とありました。
ここにをR_HOME_DIR=/tools/usr/lib64/R に変更し実行すると
[hoge@fuga tools]$ /tools/usr/bin/R /tools/usr/lib64/R/bin/exec/R: error while loading shared libraries: libtre.so.5: cannot open shared object file: No such file or directory
libtre.so.5
は--installrootで指定した“インストール先”にはありました。
$ sudo find / -name libtre.so.5 /tools/usr/lib64/libtre.so.5
そもそもなのですが、“--installrootオプション”はこのようにインストール先を変えたい
という時に使うものではないのでしょうか。
使い方を教えていただけないでしょうか。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。