I want to do a system wide installation of Nim. I have searched the forums and haven't found anything that clearly defines how this can be accomplished. Do I just need to move nim and nimble to /usr/local/bin? Or is there more to it. Some simple guidance would be greatly appreciated.
Thanks Jim
Installing a package to /opt/package also has the virtue it is trivial to remove later. In Nim's case this is simple, but some packages have many executables or scripts. An alternative to remove the need to manually link each /opt/package/bin/* into /usr/local/bin is to add something like this to /etc/skel/.profile:
for pkg in $( /bin/ls -1 /opt 2> /dev/null ); do
[ -d "/opt/$pkg/bin" ] && PATH="/opt/$pkg/bin":$PATH
done
Most packages follow the standard package/bin/* structure, and this is what a 'configure --prefix=/opt/package' will produce also.
Thanks for the info. I kept having trouble trying to install nimble so I decided to leave it alone and use from my home directory and everything works fine.
Again ThankYou