Some problems encountered during the installation of erlang virtual machine
erlang××× Address www.erlang.org/download.html
Download and extract tar-zxvf otp_src_R16B01.tar.gz and enter the corresponding folder
Implementation of.../ configure --help will list some parameters of installing erlang. You can modify these parameters as needed. Generally, we use--without-javac --prefix=/usr/local.
Implementation of.../ configure --without out-javac--prefix=/usr/local, preferably executed with root privileges
Normally, you'll get a prompt that you can't find odbc.
At this point we need to install odbc related unix libraries
redhad:
sudo yum install unixODBC
sudo yum install unixODBC-devel
or
ubuntu:
sudo apt-get install unixODBC
sudo apt-get install unixODBC-dev
After installing odbc, you can compile erlang
Compile:
make
Installation: (it is best to use root privileges when installing, and general user privileges are not enough)
make install
Testing:
View erlang version erl -v
1> 1+3.
2>4
Installation complete!
One more thing:
sudo yum install unixODBC prompt can't find liblua-5.1.so, but ldd check yum program is prompt yum does not depend on dynamic library, finally use strace sudo yum install unixODBC to find yum program called rmp program
I have some problems in the installation, yum is actually calling the rpm command to install the program, but my machine does not know when to delete the liblua-5.1.so dynamic library, resulting in rpm program can not work, the solution in the same system on other machines to test a liblua-5.1.so file to put in the/usr/lib directory, rpm program can work normally, the corresponding yum can also be integrated into the work
bye!