尝试在 ubuntu 16.04 上安装 ruby-install
Trying to make ruby-install on ubuntu 16.04
我下载了 ruby-install 版本 0.6.1 并且由于某种原因我得到了这个 make 错误:
*** No rule to make target 'install'. Stop.
我该怎么做才能解决这个问题?
deploy@blah:~$ sudo ls /root/
ruby-install-0.6.1 ruby-install.tar.gz
deploy@blah:~$ sudo make /root/ruby-install-0.6.1/ install
make: Nothing to be done for '/root/ruby-install-0.6.1/'.
make: *** No rule to make target 'install'. Stop.
更新
我现在进入目录:
root@blah:~/ruby-install-0.6.1# sudo make install
for dir in `find bin share -type d`; do mkdir -p /usr/local/$dir; done
for file in `find bin share -type f`; do cp $file /usr/local/$file; done
mkdir -p /usr/local/share/doc/ruby-install-0.6.1
cp -r *.md *.txt /usr/local/share/doc/ruby-install-0.6.1/
这个有用吗?
您需要 cd
进入目录,而不是将目录作为参数传递给 make
。例如
cd ruby-install-0.6.1
sudo make install
我下载了 ruby-install 版本 0.6.1 并且由于某种原因我得到了这个 make 错误:
*** No rule to make target 'install'. Stop.
我该怎么做才能解决这个问题?
deploy@blah:~$ sudo ls /root/
ruby-install-0.6.1 ruby-install.tar.gz
deploy@blah:~$ sudo make /root/ruby-install-0.6.1/ install
make: Nothing to be done for '/root/ruby-install-0.6.1/'.
make: *** No rule to make target 'install'. Stop.
更新
我现在进入目录:
root@blah:~/ruby-install-0.6.1# sudo make install
for dir in `find bin share -type d`; do mkdir -p /usr/local/$dir; done
for file in `find bin share -type f`; do cp $file /usr/local/$file; done
mkdir -p /usr/local/share/doc/ruby-install-0.6.1
cp -r *.md *.txt /usr/local/share/doc/ruby-install-0.6.1/
这个有用吗?
您需要 cd
进入目录,而不是将目录作为参数传递给 make
。例如
cd ruby-install-0.6.1
sudo make install