Luban language software package compilation and Installation Guide
Source: Internet
Author: User
Luban language software package compilation and Installation Guide-general Linux technology-Linux programming and kernel information, the following is a detailed description. Huang Xiaochuan
Luban language software package is a free and open source software. According to the "Luban software license", users can modify and distribute the Luban language software package.
Preparations for compiling Luban Language Software Package
1) GCC 3.0 or later
The multithreading function in the Luban language package compiled by GCC is less than 3.0.
2) POSIX thread interface function library pthread library
3) flex lexical analyzer and function library libfl
4) if you need to modify the Luban syntax (not required in most cases)
Bison syntax analyzer is required
5) To compile the Luban language software package using any operating system and C ++ compiler, it must meet the following requirements:
· The stl of the c ++ compiler must meet the multi-thread security requirements.
· The underlying libc library must meet multi-thread security requirements
How to compile the Luban language software package on LINUX or similar UNIX systems
1) download and open the Luban language source package
Gunzip luban.beta1.1.tar.gz
Tar xvf luban.beta1.1.tar
The preceding two Commands will open the luban source code package and place it in a directory. The directory name is luban. beta1 (may be changed)
2) Go to the newly opened Luban source code package directory and compile
Cd luban. beta1
./Lbnbuild
./The lbnbuild Command Script will start compiling the entire Luban language package.
For Luban Beta2.0 or later versions, you must set the environment variable JAVA_HOME. If no compilation script is set, you must enter the JAVA_HOME value.
JAVA_HOME should be set to the installation directory of the Java language
3) after compilation, you can install the Luban language package.
If you have super user permissions, you only need to enter the following command:
./Lbninstall
The lbinstall Command Script will install the following files and function libraries:
· Luban command line interpreter, load/usr/bin
· Load/usr/lib to all function libraries
· Mount/usr/lib/luban/include all C ++ header files
· Mount all other files to/usr/lib/Luban
Then you can run the command
Luban-I
Luban language can be used!
4) if you do not have the superuser permission, you may want to install luban in your own directory, for example,/home/me/luban. You just need to input the following command:
./Lbninstall/home/me/luban
The lbinstall Command Script will install the following files and function libraries:
· Luban command line interpreter, load/home/me/luban/bin
· Load/home/me/luban/lib to all function libraries
· Load/home/me/luban/include all C ++ header files
· Mount all other files to/usr/lib/luban
After installation, you must set the following environment variables:
· Add/home/me/luban/bin to PATH
· Add/home/me/luban/lib to LD_LIBRARY_PATH
· LUBAN_HOME =/home/me/Luban
Then you can run the command
Luban-I
Luban language can be used!
How to compile the Luban language package on Cygwin + Windows
1) download and open the Luban language source package
Gunzip luban.beta1.1.tar.gz
Tar xvf luban.beta1.1.tar
The preceding two Commands will open the luban source code package and place it in a directory. The directory name is luban. beta1 (may be changed)
2) Go to the newly opened Luban source code package directory and compile
Cd luban. beta1
./Lbnbuild. cygwin
./The lbnbuild. cygwin Command Script will start compiling the entire Luban language package.
For Luban Beta2.0 or later versions, you must set the environment variable JAVA_HOME. If no compilation script is set, you must enter the JAVA_HOME value.
JAVA_HOME should be set to the installation directory of the Java language
3) after compilation, you can install the Luban language package.
./Lbninstall. cygwin
The Lbinstall. cygwin Command Script installs the following files and function libraries:
· Luban command line interpreter, load/usr/bin
· Load/usr/lib to all function libraries
· Mount/usr/lib/luban/include all C ++ header files
· Mount all other files to/usr/lib/Luban
Then you can run the command
Luban-I
Luban language can be used!
4) if you want to install luban to a specified directory, such as/home/me/luban, you just need to input the following command:
./Lbninstall/home/me/luban
The lbinstall Command Script will install the following files and function libraries:
· Luban command line interpreter, load/home/me/luban/bin
· Load/home/me/luban/lib to all function libraries
· Load/home/me/luban/include all C ++ header files
· Mount all other files to/usr/lib/luban
After installation, you must set the following environment variables:
· Add/home/me/luban/bin to PATH
· Add/home/me/luban/lib to PATH
· LUBAN_HOME =/home/me/Luban
Then you can run the command
Luban-I
Luban language can be used!
Precautions for installing and running Luban Java Connection Bridge
Luban Beta2.0 and later versions include Luban Java connection bridges. Note the following during compilation and installation:
Set the value of the environment variable JAVA_HOME to the installation directory of the Java language.
For example, if your Java is installed in/usr/lib/java/jdk1.5.0 _ 02, you need to set it as follows:
JAVA_HOME =/usr/lib/java/jdk1.5.0 _ 02
Set the environment variable LD_LIBRARY_PATH (Linux) or PATH (Windows) to include
Example:
LD_LIBRARY_PATH =/usr/lib/java/jre/lib/i386/client:/usr/lib/java/jre/lib/i386
Set the environment variable CLASSPATH to include the Java class JAR files and directories you need into the directory so that you can
Java class. Example:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service