postmodern / chruby

Changes the current Ruby
MIT License
2.87k stars 190 forks source link

can't perform single-user install on OpenBSD #391

Closed olistik closed 7 years ago

olistik commented 7 years ago

I'm trying to install chruby on OpenBSD and I've already installed bash with pkg_add bash and made it the default shell:

-bash-4.4$ bash --version
GNU bash, version 4.4.12(1)-release (x86_64-unknown-openbsd6.1)

then, following https://github.com/postmodern/chruby#install I omit the last sudo and perform instead a make install but I get the following error:

-bash-4.4$ make install
for dir in `find etc lib bin sbin share -type d 2>/dev/null`; do mkdir -p /usr/local/$dir; done
mkdir: /usr/local/share/chruby: Permission denied
*** Error 1 in /home/olistik/download/chruby-0.3.9 (Makefile:62 'install')

What am I doing wrong?

olistik commented 7 years ago

I somehow made a mistake along the process.

The installation must be performed by root and then, if I return as a normal user and source /usr/local/share/chruby/chruby.sh I can properly access chruby.

Closing this one as it is not an issue :-)