Because I'm not using enormous Windows Platform (only @Work), the project not running yet rapidly.
Meanwhile, I'm using Kubuntu GNU/Linux (Ubunu variant) and continue to explain the Open-cobol with some implementation find at several information.
in read-write folder ($HOME), launch following command:
mkdir ocobol
cd ocobol
# download gmp-4.2.4
wget ftp://ftp.gmplib.org/pub/gmp-4.2.4.tar.gz
# download db 1.86 (license not permissive)
wget http://download.oracle.com/berkeley-db/db-4.5.20.NC.tar.gz
# download last version of Open-cobol (sourceforge ?)
wget http://www.sim-basis.de/open-cobol-1.1.tar.gz
#untar all
tar -xzvf gmp-4.2.4.tar.gz
tar -xzvf db-4.5.20.NC.tar.gz
tar -xzvf open-cobol-1.1.tar.gz
# compilation can take big time
cd db-4.5.20.NC/build_unix/
../dist/configure --prefix=/opt/db-4.5.20.NC
make
sudo make install
# Exit db compil
cd ../..
# compilation gmp 4.2.4
cd gmp-4.2.4
./configure --prefix=/opt/gmp-4.2.4 --enable-shared --disable-static
make
# verify product usability with O.S.
make check
sudo make install
# Exit gmp compil
cd ..
#
sudo ln -s /opt/gmp-4.2.4 /opt/gmp
sudo ln -s /opt/db-4.5.20-NC/ /opt/db
# variable initialization for Open-cobol
export LD_LIBRARY_PATH=/opt/db/lib/:/opt/gmp/lib
export PATH=/opt/gmp/bin:/opt/gmp/lib:/opt/db/lib:$PATH
export CPPFLAGS="-I/opt/gmp/include/ -I/opt/db/include/"
export LDFLAGS="-L/opt/gmp/lib/ -lgmp -L/opt/db/lib/ -ldb"
cd open-cobol-1.1
# Start compilation & installation
./configure --prefix=/opt/open-cobol-1.1
make
# verify product usability with O.S.
make check
# all tests mst be 'ok'
sudo make install
sudo ln -s /opt/open-cobol-1.1/ /opt/open-cobol
Next time, create an independant user who have all possibility to user open-cobol (first tutorial).
1 comment:
thanks
Post a Comment