Trying to make ruby-install on ubuntu 16.04

问题内容:

I downloaded ruby-install version 0.6.1 and for some reason I get this make error:

*** No rule to make target ‘install’. Stop.

What can I do to fix this?

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.

Update

I went into the directory now:

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/

Did this work?

问题评论:

答案:

答案1:

You need to cd into the directory, not pass the directory as an argument to make. E.g.

cd ruby-install-0.6.1
sudo make install

答案评论:

    
Please see my update, it just outputted all these commands after running make, is this correct?
– Blankman
18 hours ago
    
@Blankman If you try to run ruby-install, does it succeed? (You may have to start a new shell, depending on your configuration).
    
Yes it works. Strange when I manually ssh into the server it works. When I used ansible I got that error. Must be something in this command: github.com/aleks/ansible-rails/blob/master/roles/ruby/tasks/‌​…
– Blankman
18 hours ago

原文地址:

https://stackoverflow.com/questions/47743724/trying-to-make-ruby-install-on-ubuntu-16-04

添加评论

友情链接:蝴蝶教程