I’m probably missing something in Erlang/OTP installation from sources … my goal is to install multiple version of OTP in user space.
Here is one way to do it:
- remove any symlink if needed
rm /home/khigia/local/lib/erlang - apply the “normal” quick install steps for the new OTP version, let say otp-R11B5
cd /home/khigia/apps/otp-src-R11B5; ./configure --prefix=/home/khigia/local ; make; make install - modify the install to be version specific
mv /home/khigia/local/lib/erlang /home/khigia/local/lib/otp-R11B5
ln -s /home/khigia/local/lib/otp-R11B5 /home/khigia/local/lib/erlang
Changing the symlink enable to switch Erlang/OTP version. There must be an easiest way … how?
September 26, 2007 at 10:53 am
Why don’t you run
configure ‘–prefix=/home/khigia/local –libdir=/home/khigia/local/lib/otp-R11B5′ ?
S.
September 27, 2007 at 12:20 am
[...] Erlang/OTP installation from sources (very good erlang blog – adverl etc.) (tags: erlang programming blog) [...]
September 27, 2007 at 12:41 am
Thanks Stefan! Option ‘libdir’ may help and I hadn’t try before.
However I stick on the ’symlink’ solution as it help me to easily switch between OTP distribution versions: trick is that all files in bin directory are symlinks using the ‘erlang’ component in path that I can point to any lib folder … can I do that with libdir option?
I still think there exists a easiest solution to be able to run multiple OTP version on same machine … idea anyone?