This document describes how to make existing ELiPS library working in Linux environment. This is expected that it will work any 32-bit and 64bit Unix distribution Ububtu, OS X (not tested). Autotools installation may vary for Linux and OS X. Please keep in mind that it is still in developing phase. If found any bug related to installation, please infrom in khandaker@s.okayama-u.ac.jp
-
Follow the instructions to install
GMP
library. Latest vesion is ok. -
Check if
autoconf
is installed in your environment.autoconf --version
. You migh see someting like this . If it is not installed then follow point 3. autoconf (GNU Autoconf) 2.69 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html, http://gnu.org/licenses/exceptions.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David J. MacKenzie and Akim Demaille. -
Install
autoconf
as followssudo apt-get update
sudo apt-get install autoconf
-
Install
libtool
as followssudo apt-get install libtool-bin
-
git clone
https://github.com/eNipu/elips_bn_bls.git
-
From terminal enter to
<elips_bn_bls>
directory. -
Run the following commands
autoreconf -i
The output will be almost as follows
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
libtoolize: 'AC_PROG_RANLIB' is rendered obsolete by 'LT_INIT'
configure.ac:7: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.ac:7: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
- Next run
./configure
- Then
make
- Finally
sudo make install
- To uninstall
sudo make uninstall
from the directory
Still there is no single header. Therefore please /usr/local/include/ELiPS_bn_bls
directory to get the header declaration.
If you face cannot open shared object file: No such file or directory
while running then follow this steps:
-
Run from terminal
sudo ldconfig
-
echo $LD_LIBRARY_PATH
-
If the command of point 2 gives blank result then
LD_LIBRARY_PATH=/usr/local/lib
-
Check if again of
echo $LD_LIBRARY_PATH
. If path is set then run again.