configure error in graphtool for CGAL - configure

I am trying to install graphtool 2.2.35, I have installed all required library and verified that it is working.
However when I run ./configure then I got the following error:
checking:
:
:
Using python version: 2.7.5
===========================
checking for boostlib >= 1.53.0... yes
checking whether the Boost::Python library is available... yes
checking for exit in -lboost_python... yes
checking whether the Boost::Iostreams library is available... yes
checking for exit in -lboost_iostreams... no
checking for exit in -lboost_iostreams... (cached) no
checking for exit in -lboost_iostreams-mt... no
checking for exit in -lboost_iostreams-mt-py2.5... no
checking whether the Boost::Regex library is available... yes
checking for exit in -lboost_regex... yes
checking whether the Boost::Graph library is available... yes
checking for exit in -lboost_graph... yes
checking for main in -lCGAL... no
checking whether to cgal debbuging with valgrind...... no
checking python module: numpy... yes
checking for /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h... yes
checking python module: scipy... yes
checking /usr/lib64/python2.7/site-packages/scipy/weave/scxx/object.h usability... yes
checking /usr/lib64/python2.7/site-packages/scipy/weave/scxx/object.h presence... yes
checking for /usr/lib64/python2.7/site-packages/scipy/weave/scxx/object.h... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking CGAL/version.h usability... no
checking CGAL/version.h presence... no
checking for CGAL/version.h... no
configure: error: CGAL headers not found
I am using Linux centos 7
GCC 4.8
Boost 1_57_.0
Pyhton 2.7.5
CGAL 3.5
GMP 6
Could you please help me out? I have already spent twoo much time too figure it out bu no luck. your help in this regard would highly be appreciated

If you are using Ubuntu, try:
sudo apt-get install libcgal-dev

Related

Problems installing Repast HPC 2.3.1 on MacOS

Updated:
I am trying to install repast hpc 2.3.1 on my MacBook Pro with M1 processor, however I run into the following issue. I am following the Install.txt instructions included in the package. The issue now occurs when I try to use ./install rhpc I get the following errors, which seem to stem from the GridComponents.o file failing to find the DBL_MAX variable and marking it as undeclared:
checking for mpicc... mpicc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mpicc accepts -g... yes
checking for mpicc option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether /Users/alxndr/sfw/MPICH/bin//mpicxx accepts -g... yes
checking for ar... ar
checking for ranlib... ranlib
detected Mac.
checking for cp that supports -u... no
checking for grep that handles long lines and -e... /usr/bin/grep
checking how to run the C preprocessor... mpicc -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for Boost headers version >= 0... yes
checking for Boost's header version... 1_78
checking build system type... arm-apple-darwin20.6.0
checking host system type... arm-apple-darwin20.6.0
checking for the toolset name used by Boost for /Users/alxndr/sfw/MPICH/bin//mpicxx... xgcc42 -xgcc
checking how to run the C++ preprocessor... /Users/alxndr/sfw/MPICH/bin//mpicxx -E
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking boost/archive/text_oarchive.hpp usability... yes
checking boost/archive/text_oarchive.hpp presence... yes
checking for boost/archive/text_oarchive.hpp... yes
checking for the Boost serialization library... yes
checking boost/mpi.hpp usability... yes
checking boost/mpi.hpp presence... yes
checking for boost/mpi.hpp... yes
checking for the Boost mpi library... yes
checking boost/system/error_code.hpp usability... yes
checking boost/system/error_code.hpp presence... yes
checking for boost/system/error_code.hpp... yes
checking for the Boost system library... yes
checking boost/filesystem/path.hpp usability... yes
checking boost/filesystem/path.hpp presence... yes
checking for boost/filesystem/path.hpp... yes
checking for the Boost filesystem library... yes
checking for boost/system/error_code.hpp... (cached) yes
checking for the Boost system library... (cached) yes
checking for curl_version in -lcurl... yes
checking for nc_open in -lnetcdf... yes
checking netcdfcpp.h usability... yes
checking netcdfcpp.h presence... yes
checking for netcdfcpp.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint32_t... yes
checking for ptrdiff_t... yes
checking for error_at_line... no
checking for ANSI C header files... (cached) yes
checking for floor... yes
checking for rint... yes
checking for sqrt... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
CC src/repast_hpc/AgentId.o
CC src/repast_hpc/AgentImporterExporter.o
CC src/repast_hpc/AgentRequest.o
CC src/repast_hpc/AgentStatus.o
CC src/repast_hpc/CartesianTopology.o
CC src/repast_hpc/Graph.o
CC src/repast_hpc/GridComponents.o
src/repast_hpc/GridComponents.cpp:165:64: error: use of undeclared identifier 'DBL_MAX'
if(out[i] >= maxs[i]) out[i] = nextafter(maxs[i], -DBL_MAX);
^
src/repast_hpc/GridComponents.cpp:166:64: error: use of undeclared identifier 'DBL_MAX'
else if(out[i] < mins[i]) out[i] = nextafter(mins[i], DBL_MAX);
^
2 errors generated.
make: *** [src/repast_hpc/GridComponents.o] Error 1
I've outlined all the required fixes (including the DBL_MAX fix) here: https://github.com/Repast/repast.hpc/issues/7. With those in place, the zombies and rumor demo models work on macOS on an M1 Max laptop.
All that said, and as an aside, we typically do our repast hpc and repast4py development work on a Linux VM running under Parallels or VMWare Fusion on a Mac. This is because that more closely matches the cluster or HPC environments we ultimately run the models on.

Not able to install Plone 5.0.8 on MacOS High Sierra (10.13.3)

I'm a new user of Plone (or trying to be), to build my own Website.
I'm trying to install Plone 5.0.8 on MacOS 10.13.3, using the Python 2.7 that come along with the OS.
Using Plone-5.0.8-UnifiedInstaller-r1. Already had XCode. Updated and downloaded Command Line Tools for Xcode 9.2 MacOS 10.13.
Tried "./install.sh" in Terminal from installer folder and got:
Continue with the command line:
install.sh standalone \
--target="/Users/felipelukavei/Plone"
1) Yes
2) No
#? 1
./preflight: line 1707: config.log: Permission denied
./preflight: line 1717: config.log: Permission denied
Unable to run preflight check. Basic build tools are missing.
You may get more information about what went wrong by running
sh ./preflight
Aborting installation.
then I'd run "sudo sh ./preflight" and got something similar to the following, but now I have installed some of the requirements using homebrew.
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for bunzip2... yes
checking for tar... yes
checking for gunzip... yes
checking for make... yes
checking for patch... yes
checking for xml2-config... /usr/bin/xml2-config
checking for xslt-config... /usr/bin/xslt-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking for main in -lreadline... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking for gzread in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for jpeg_read_header in -ljpeg... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for SSL_accept in -lssl... yes
checking ssl.h usability... no
checking ssl.h presence... no
checking for ssl.h... no
checking for openssl/ssl.h... (cached) yes
preflight: creating ./config.status
config.status: creating buildenv.sh
I have installed OpenSSL, and made like everything that was listed on the 5 first pages on Google for tags like ssl, headers, mac os, Plone, OpenSSL. After that, I realized that OpenSSL install has no impact on the outcoming since even uninstalled the OpenSSL check is Ok (looks like High Sierra already have it), but ssl.h I never got.
I still have in my terminal back commands:
ln -s ../opt/openssl/include/openssl
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
env LDFLAGS="-L/usr/local/opt/openssl/lib" CFLAGS="-I/usr/local/opt/openssl/include"
The result from "find /usr -iname "ssl.h*"" is:
find: /usr/sbin/authserver: Permission denied
/usr/local/include/openssl/ssl.h
/usr/local/Cellar/openssl/1.0.2n/include/openssl/ssl.h
/usr/local/share/doc/openssl/html/man7/ssl.html
The result from "which openssl" is:
/usr/local/opt/openssl/bin/openssl
Linking openssl no longer works and looks like my problem is not related to OpenSSL package itself, but with something I have no idea.
Using sudo ./install.sh gives me different output, but since Plone documentation [link] says "The resulting installation is self-contained, does not touch system files, and is safe to play with (no root/sudoing is needed)", thought I should not force it. Looks like sudo get me root install and the output follows:
Testing /usr/bin/python2.7 for Zope/Plone requirements....
/usr/bin/python2.7 looks OK. We will use it.
Root install method chosen. Will install for use by users:
ZEO & Client Daemons: plone_daemon
Code Resources & buildout: plone_buildout
Detailed installation log being written to /Users/felipelukavei/Downloads/Plone-5.0.8-UnifiedInstaller-r1/install.log
Installing Plone 5.0.8 at /Applications/Plone
We do not know how to add users and groups in this environment. This is no problem if the required users and group already exist.
id: plone_daemon: no such user
id for plone_daemon returned
id: plone_daemon: no such user
Expected to find uid for plone_daemon and gid for plone_group but did not.
Please use your system tools to create/edit required users and group, then try again.
Thanks for helping.
The question was answered on Plone Community: https://community.plone.org/t/not-able-to-install-plone-5-0-8-on-macos-high-sierra-10-13-3/5972/29
Thanks!

Integration of ns-2.35 and EvalVid 2.7

I use ubuntu 14.04 and i am trying to integrate evalvid 2.7 and ns2.35. I added necessary files like: myevalvid.cc, myudp.cc, myudp.h, myevalvid_sink.cc, myevalvid_sink.h . And inside the Makefile.in i have put myevalvid/myudp.o, myevalvid/myevalvid_sink.o and myevalvid/myevalvid.o in the OBJ_CC list.
But the problem is, when i enter the ./configure command, i get this error from the console referring to the tcl program:
checking for gcc... gcc
checking whether the C compiler works... yes checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define EXTENSIONS... yes
No .configure file found in current directory
Continuing with default options...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... yes
checking if C++ libraries work without any namespace... no
checking if C++ libraries work with namespace std... yes
checking if STL works without any namespace... no
checking if STL works with namespace std... yes
checking should use STL... yes
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl8.6... no
checking for init.tcl... ../lib/tcl8.5
checking for http.tcl... ../lib/tcl8.5/http1.0
checking Tcl http.tcl library... yes
checking for tclsh8.6.1... no
checking for tclsh8.6... /usr/bin/tclsh8.6
configure: error: Installation of tcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tcl=no.
Can anyone help me fix this please. It will also help someone else, cause this topic is widely spread.
I solved the problem by entering this: ./configure --with-tcl=/usr/lib/tcl8.5

How to install hscurses on Windows

I'm trying to install hscurses on Windows 7. From the readme, it has a dependency on pdcurses.
I downloaded and extracted pdcurses (curses.h, panel.h, pdcurses.dll, pdcurses.lib) in a folder and then ran this cabal command from a git-bash console:
$ cabal install hscurses --extra-include-dirs=/c/Code/Haskell/pdcurses --extra-lib-dirs=/c/Code/Haskell/pdcurses/
But it failed with the following output:
Resolving dependencies...
Configuring hscurses-1.4.1.2...
configure: WARNING: unrecognized options: --with-gcc
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for addnstr in -lcurses... no
checking for addnstr in -lncurses... no
checking for waddnwstr in -lncursesw... no
checking for addnstr in -lpdcurses... no
checking for waddnwstr in -lpdcursesw... no
checking for iconv in -liconv... no
checking for libiconv in -liconv... no
checking for libiconv... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking iconv.h usability... no
checking iconv.h presence... no
checking for iconv.h... no
checking curses.h usability... no
checking curses.h presence... no
checking for curses.h... no
checking ncurses.h usability... no
checking ncurses.h presence... no
checking for ncurses.h... no
checking ncursesw/ncurses.h usability... no
checking ncursesw/ncurses.h presence... no
checking for ncursesw/ncurses.h... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking langinfo.h usability... no
checking langinfo.h presence... no
checking for langinfo.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
configure: creating ./config.status
config.status: creating hscurses.buildinfo
config.status: creating cbits/config.h
configure: WARNING: unrecognized options: --with-gcc
cabal.exe: Missing dependency on a foreign library:
* Missing C library: curses
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
Failed to install hscurses-1.4.1.2
cabal.exe: Error: some packages failed to install:
hscurses-1.4.1.2 failed during the configure step. The exception was:
ExitFailure 1
It looks like it's not picking up the pdcurses library even though I used the --extra-include-dirs and --extra-lib-dirs parameters.
What I am missing?
Well I found the solution
$ export LIBRARY_PATH=/c/Code/Haskell/pdcurses
$ export C_INCLUDE_PATH=/c/Code/Haskell/pdcurses
Don't know why --extra-include-dirs and --extra-lib-dirs didn't work though.

Installing GPUOCELOT under OSX Lion 10.7

I'm new to stackoverflow. My question ia about gpuocelet. Is there anybody using it? Does it work on unix (I'm using a macbook air with os x 10.7) OS? I tried in many way to install it but without success. I installed correctly all the packages required from macports following these instructions http://code.google.com/p/gpuocelot/downloads/detail?name=Ocelot_Installation_manual2.pdf
In particular I installed boost 1.50 via macports but the error I get running the ./configure in gpuocelot folder is :
MacBook-Air-di-Manfredo:downloads manfredo$ cd ocelot-2.0.969/
MacBook-Air-di-Manfredo:ocelot-2.0.969 manfredo$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for main in -lboost_system-mt... no
configure: error: "libboost_system required"
MacBook-Air-di-Manfredo:ocelot-2.0.969 manfredo$
my PATH is
PATH=/Users/manfredo/downloads/boost_1_42_0/stage/lib:/Users/manfredo/downloads/boost_1_42_0/libs:/Users/manfredo/downloads/boost_1_42_0/libs:/Users/manfredo/downloads/boost_1_42_0/boost/system:/Users/manfredo/downloads/boost_1_42_0/boost:/opt/local/bin:/opt/local/sbin:/opt/local/lib:/usr/local/cuda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
Every help is welcome, Thanks.
It looks like you have another tried to install version of Boost installed un your home directory as you have put it on your path, also Boost does not go on the path but headers should be in the INCLUDE environment variable and libraries in a lib variable.
For macports these are /opt/local/include and /opt/local/lib respectively.
e.g. for Cmake from the variables that control the build
CMAKE_INCLUDE_CURRENT_DIR=/opt/local/include
CMAKE_LIBRARY_PATH_FLAG=/opt/local/lib

Resources