If the library is incomplete, various errors will be reported during compilation and installation, so we are standing on the shoulders of giants. First of all, lay a good database: sudoapt-getinstallbuild-essentialsudoapt-getinstalllibncurses5-dev & nb
If the library is incomplete, various errors will be reported during compilation and installation, so we are standing on the shoulders of giants.
First, prepare the database:
- Sudo apt-get install build-essential
- Sudo apt-get install libncurses5-dev
- Sudo apt-get install libssl-dev
- Sudo apt-get install m4
- Sudo apt-get install unixodbc-dev
- Sudo apt-get install freeglut3-dev libwxgtk2.8-dev
- Sudo apt-get install strongtproc
- Sudo apt-get install fop
- Sudo apt-get install tk8.5
After installing the dependency above, go to the official website next source package: http://www.erlang.org/download.html
Decompress the package and compile and install it:
- Tar zxvf/home/lqg/download/otp_src_R15B01.tar.gz
- Cd/home/lqg/otp_src_R15B01/
- ./Configure
- Make & make install
There is usually no compilation error here, and there may be jdk environment problems:No Java compiler found
Check the jdk environment.
Finally, enter erl in the terminal
You can perform the erlang shell test:
- 1> io: format ("hello wlord ").
- Hello wlordok
- 2> io: format ("hello wlord ~ N ").
- Hello wlord
- OK
- 3> io: format ("the output is :~ W ~ W ~ N ", [hello, world]).
- The output is: hello world
- OK
- 4> io: format ("the output is :~ W ~ W ~ N ", [hello, world]).
- The output is: helloworld
- OK
- 5> io: format ("the output is :~ W ~ W ~ N ", [hello, world]).
- The output is: helloworld
- OK
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2