Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Trying to install a software called CASAVA and looks like it is trying to install Boost C++ library but endup with following error. Could anybody help me to solve this.
Hi knudfl and Didier Spaier,
Thank you both for replies.
I tried to install the available packages in yum as below and also installed "epel-release-5-4.noarch.rpm" but no luck.
Install failed again with errors.
Installed below
Code:
# yum list |grep -i boost
boost.i386 1.33.1-10.el5 installed
boost-devel.i386 1.33.1-10.el5 installed
and also
# rpm -qa |grep -i epel
epel-release-5-4
and below is the detailed log of casava install error
Code:
# ../CASAVA_v1.7.0/src/configure
cmake version "cmake version 2.8.0" is already installed at /home/admin/CASAVA-1.7.0-build/bootstrap/bin/cmake
nothing to be done
Using installed /home/admin/CASAVA-1.7.0-build/bootstrap/bin/cmake
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- install prefix: /usr/local
-- install exec prefix: .
-- install bin dir: ./bin
-- install lib dir: ./lib/CASAVA-1.7.0
-- install libexec dir: ./libexec/CASAVA-1.7.0
-- install include dir: include/CASAVA-1.7.0
-- install data dir: share/CASAVA-1.7.0
-- install doc dir: doc/CASAVA-1.7.0
-- install man dir: man
-- Verifying target directories access
-- Creating external tools in subdirectory opt
-- Could NOT find Boost
-- Boost 1.41.0 not found. Boost will be built from the distribution...
Decompressing /home/admin/CASAVA_v1.7.0/src/../redist/boost_1_41_0.tar.gz
Building Boost.Jam with toolset gcc... tools/jam/src/bin.linuxx86/bjam
Unicode/ICU support for Boost.Regex?... not found.
Backing up existing Boost.Build configuration in project-config.jam.2
Generating Boost.Build configuration in project-config.jam...
Bootstrapping is done. To build, run:
./bjam
To adjust configuration, edit 'project-config.jam'.
Further information:
- Command line help:
./bjam --help
- Getting started guide:
http://www.boost.org/more/getting_started/unix-variants.html
- Boost.Build documentation:
http://www.boost.org/boost-build2/doc/html/index.html
warning: Building Boost.Regex with the optional Unicode/ICU support disabled.
note: Please refer to the Boost.Regex documentation for more information
note: this is a strictly optional feature.
...patience...
...patience...
...found 16181 targets...
...updating 4 targets...
gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.1.2/release/link-static/threading-multi/bzip2.o
libs/iostreams/src/bzip2.cpp:19:56: error: bzlib.h: No such file or directory
libs/iostreams/src/bzip2.cpp:30: error: âBZ_OKâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:31: error: âBZ_RUN_OKâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:32: error: âBZ_FLUSH_OKâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:33: error: âBZ_FINISH_OKâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:34: error: âBZ_STREAM_ENDâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:35: error: âBZ_SEQUENCE_ERRORâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:36: error: âBZ_PARAM_ERRORâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:37: error: âBZ_MEM_ERRORâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:38: error: âBZ_DATA_ERRORâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:39: error: âBZ_DATA_ERROR_MAGICâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:40: error: âBZ_IO_ERRORâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:41: error: âBZ_UNEXPECTED_EOFâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:42: error: âBZ_OUTBUFF_FULLâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:43: error: âBZ_CONFIG_ERRORâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:47: error: âBZ_FINISHâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:48: error: âBZ_RUNâ was not declared in this scope
libs/iostreams/src/bzip2.cpp: In static member function âstatic void boost::iostreams::bzip2_error::check(int)â:
libs/iostreams/src/bzip2.cpp:61: error: âBZ_OKâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:62: error: âBZ_RUN_OKâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:63: error: âBZ_FLUSH_OKâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:64: error: âBZ_FINISH_OKâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:65: error: âBZ_STREAM_ENDâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:67: error: âBZ_MEM_ERRORâ was not declared in this scope
libs/iostreams/src/bzip2.cpp: In constructor âboost::iostreams::detail::bzip2_base::bzip2_base(const boost::iostreams::bzip2_params&)â:
libs/iostreams/src/bzip2.cpp:79: error: expected type-specifier before âbz_streamâ
libs/iostreams/src/bzip2.cpp:79: error: expected `)' before âbz_streamâ
libs/iostreams/src/bzip2.cpp: In destructor âboost::iostreams::detail::bzip2_base::~bzip2_base()â:
libs/iostreams/src/bzip2.cpp:82: error: expected type-specifier before âbz_streamâ
libs/iostreams/src/bzip2.cpp:82: error: expected `>' before âbz_streamâ
libs/iostreams/src/bzip2.cpp:82: error: expected `(' before âbz_streamâ
libs/iostreams/src/bzip2.cpp:82: error: âbz_streamâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:82: error: expected primary-expression before â>â token
libs/iostreams/src/bzip2.cpp:82: error: expected `)' before â;â token
libs/iostreams/src/bzip2.cpp: In member function âvoid boost::iostreams::detail::bzip2_base::before(const char*&, const char*, char*&, char*)â:
libs/iostreams/src/bzip2.cpp:87: error: âbz_streamâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:87: error: âsâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:87: error: expected type-specifier before âbz_streamâ
libs/iostreams/src/bzip2.cpp:87: error: expected `>' before âbz_streamâ
libs/iostreams/src/bzip2.cpp:87: error: expected `(' before âbz_streamâ
libs/iostreams/src/bzip2.cpp:87: error: expected primary-expression before â>â token
libs/iostreams/src/bzip2.cpp:87: error: expected `)' before â;â token
libs/iostreams/src/bzip2.cpp: In member function âvoid boost::iostreams::detail::bzip2_base::after(const char*&, char*&)â:
libs/iostreams/src/bzip2.cpp:96: error: âbz_streamâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:96: error: âsâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:96: error: expected type-specifier before âbz_streamâ
libs/iostreams/src/bzip2.cpp:96: error: expected `>' before âbz_streamâ
libs/iostreams/src/bzip2.cpp:96: error: expected `(' before âbz_streamâ
libs/iostreams/src/bzip2.cpp:96: error: expected primary-expression before â>â token
libs/iostreams/src/bzip2.cpp:96: error: expected `)' before â;â token
libs/iostreams/src/bzip2.cpp: In member function âvoid boost::iostreams::detail::bzip2_base::end(bool)â:
libs/iostreams/src/bzip2.cpp:104: error: âbz_streamâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:104: error: âsâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:104: error: expected type-specifier before âbz_streamâ
libs/iostreams/src/bzip2.cpp:104: error: expected `>' before âbz_streamâ
libs/iostreams/src/bzip2.cpp:104: error: expected `(' before âbz_streamâ
libs/iostreams/src/bzip2.cpp:104: error: expected primary-expression before â>â token
libs/iostreams/src/bzip2.cpp:104: error: expected `)' before â;â token
libs/iostreams/src/bzip2.cpp:107: error: âBZ2_bzCompressEndâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:108: error: âBZ2_bzDecompressEndâ was not declared in this scope
libs/iostreams/src/bzip2.cpp: In member function âint boost::iostreams::detail::bzip2_base::compress(int)â:
libs/iostreams/src/bzip2.cpp:114: error: expected type-specifier before âbz_streamâ
libs/iostreams/src/bzip2.cpp:114: error: expected `>' before âbz_streamâ
libs/iostreams/src/bzip2.cpp:114: error: expected `(' before âbz_streamâ
libs/iostreams/src/bzip2.cpp:114: error: âbz_streamâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:114: error: expected primary-expression before â>â token
libs/iostreams/src/bzip2.cpp: In member function âint boost::iostreams::detail::bzip2_base::decompress()â:
libs/iostreams/src/bzip2.cpp:119: error: expected type-specifier before âbz_streamâ
libs/iostreams/src/bzip2.cpp:119: error: expected `>' before âbz_streamâ
libs/iostreams/src/bzip2.cpp:119: error: expected `(' before âbz_streamâ
libs/iostreams/src/bzip2.cpp:119: error: âbz_streamâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:119: error: expected primary-expression before â>â token
libs/iostreams/src/bzip2.cpp: In member function âvoid boost::iostreams::detail::bzip2_base::do_init(bool, void* (*)(void*, int, int), void (*)(void*, void*), void*)â:
libs/iostreams/src/bzip2.cpp:130: error: âbz_streamâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:130: error: âsâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:130: error: expected type-specifier before âbz_streamâ
libs/iostreams/src/bzip2.cpp:130: error: expected `>' before âbz_streamâ
libs/iostreams/src/bzip2.cpp:130: error: expected `(' before âbz_streamâ
libs/iostreams/src/bzip2.cpp:130: error: expected primary-expression before â>â token
libs/iostreams/src/bzip2.cpp:130: error: expected `)' before â;â token
libs/iostreams/src/bzip2.cpp:147: error: âBZ2_bzCompressInitâ was not declared in this scope
libs/iostreams/src/bzip2.cpp:150: error: âBZ2_bzDecompressInitâ was not declared in this scope
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o "bin.v2/libs/iostreams/build/gcc-4.1.2/release/link-static/threading-multi/bzip2.o" "libs/iostreams/src/bzip2.cpp"
...failed gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.1.2/release/link-static/threading-multi/bzip2.o...
...skipped <pbin.v2/libs/iostreams/build/gcc-4.1.2/release/link-static/threading-multi>libboost_iostreams.a(clean) for lack of <pbin.v2/libs/iostreams/build/gcc-4.1.2/release/link-static/threading-multi>bzip2.o...
...skipped <pbin.v2/libs/iostreams/build/gcc-4.1.2/release/link-static/threading-multi>libboost_iostreams.a for lack of <pbin.v2/libs/iostreams/build/gcc-4.1.2/release/link-static/threading-multi>bzip2.o...
...skipped <p/home/admin/CASAVA-1.7.0-build/opt/bootstrap/lib>libboost_iostreams.a for lack of <pbin.v2/libs/iostreams/build/gcc-4.1.2/release/link-static/threading-multi>libboost_iostreams.a...
...failed updating 1 target...
...skipped 3 targets...
installBoost.sh: build failed: Terminating...
CMake Error at opt/CMakeLists.txt:148 (message):
Failed to build boost 1.41.0
-- Configuring incomplete, errors occurred!
Couldn't configure the project:
/home/admin/CASAVA-1.7.0-build/bootstrap/bin/cmake -H"/home/admin/CASAVA_v1.7.0/src" -B"/home/admin/CASAVA-1.7.0-build" -G"Unix Makefiles" -DCASAVA_PREFIX:PATH= -DCASAVA_EXEC_PREFIX:PATH= -DCMAKE_INSTALL_PREFIX:PATH= -DCASAVA_BINDIR:PATH= -DCASAVA_LIBDIR:PATH= -DCASAVA_LIBEXECDIR:PATH= -DCASAVA_INCLUDEDIR:PATH= -DCASAVA_DATADIR:PATH= -DCASAVA_DOCDIR:PATH= -DCASAVA_MANDIR:PATH= -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo
Moving CMakeCache.txt to CMakeCache.txt.removed
Tried to install bzip2 but YUM is not working after i installed epel rpm and getting this error now
Code:
yum install bzip2-devel
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=i386 error was
[Errno 4] IOError: <urlopen error (97, 'Address family not supported by protocol')>
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
Thank you very much. it was able to install boost after installing bzip2-devel but the CASAVA install failed this time with different error.
Code:
# ../CASAVA_v1.7.0/src/configure
cmake version "cmake version 2.8.0" is already installed at /home/admin/CASAVA-1.7.0-build/bootstrap/bin/cmake
nothing to be done
Using installed /home/admin/CASAVA-1.7.0-build/bootstrap/bin/cmake
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- install prefix: /usr/local
-- install exec prefix: .
-- install bin dir: ./bin
-- install lib dir: ./lib/CASAVA-1.7.0
-- install libexec dir: ./libexec/CASAVA-1.7.0
-- install include dir: include/CASAVA-1.7.0
-- install data dir: share/CASAVA-1.7.0
-- install doc dir: doc/CASAVA-1.7.0
-- install man dir: man
-- Verifying target directories access
-- Creating external tools in subdirectory opt
-- Could NOT find Boost
-- Boost 1.41.0 not found. Boost will be built from the distribution...
Decompressing /home/admin/CASAVA_v1.7.0/src/../redist/boost_1_41_0.tar.gz
Building Boost.Jam with toolset gcc... tools/jam/src/bin.linuxx86/bjam
Unicode/ICU support for Boost.Regex?... not found.
Backing up existing Boost.Build configuration in project-config.jam.3
Generating Boost.Build configuration in project-config.jam...
Bootstrapping is done. To build, run:
./bjam
To adjust configuration, edit 'project-config.jam'.
Further information:
- Command line help:
./bjam --help
- Getting started guide:
http://www.boost.org/more/getting_started/unix-variants.html
- Boost.Build documentation:
http://www.boost.org/boost-build2/doc/html/index.html
warning: Building Boost.Regex with the optional Unicode/ICU support disabled.
note: Please refer to the Boost.Regex documentation for more information
note: this is a strictly optional feature.
...patience...
...patience...
...found 16181 targets...
...updating 4 targets...
gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.1.2/release/link-static/threading-multi/bzip2.o
gcc.archive bin.v2/libs/iostreams/build/gcc-4.1.2/release/link-static/threading-multi/libboost_iostreams.a
common.copy /home/admin/CASAVA-1.7.0-build/opt/bootstrap/lib/libboost_iostreams.a
...updated 4 targets...
boost-1_41_0 installed successfully
-- Successfuly built boost 1.41.0 from the distribution package...
-- Installing Post-Run Command Framework
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for floorf
-- Looking for floorf - found
-- Looking for round
-- Looking for round - found
-- Looking for roundf
-- Looking for roundf - found
-- Looking for powf
-- Looking for powf - found
-- Looking for erf
-- Looking for erf - found
-- Looking for erf
-- Looking for erf - found
-- Looking for erfc
-- Looking for erfc - found
-- Looking for erfc
-- Looking for erfc - found
-- Found ZLIB header: /usr/include/zlib.h
-- Found ZLIB library: /usr/lib/libz.so
-- gzip compression supported
-- Found BZIP2 header: /usr/include/bzlib.h
-- Found BZIP2 library: /usr/lib/libbz2.so
-- bzip2 compression supported
-- Found PTHREAD header: /usr/include/pthread.h
-- Found PTHREAD library: /usr/lib/libpthread.so
-- pthread supported
-- Boost version: 1.41.0
-- Found the following Boost libraries:
-- date_time
-- filesystem
-- iostreams
-- program_options
-- regex
-- serialization
-- system
-- thread
-- Found X11 header: /usr/include/X11/X.h
-- Found X11 library: /usr/lib/libX11.so
-- checking for module 'libxml-2.0'
-- package 'libxml-2.0' not found
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
CMake Error at cmake/cxxConfigure.cmake:92 (message):
libxml2 was not found
Call Stack (most recent call first):
c++/CMakeLists.txt:30 (include)
-- Configuring incomplete, errors occurred!
Couldn't configure the project:
/home/admin/CASAVA-1.7.0-build/bootstrap/bin/cmake -H"/home/admin/CASAVA_v1.7.0/src" -B"/home/admin/CASAVA-1.7.0-build" -G"Unix Makefiles" -DCASAVA_PREFIX:PATH= -DCASAVA_EXEC_PREFIX:PATH= -DCMAKE_INSTALL_PREFIX:PATH= -DCASAVA_BINDIR:PATH= -DCASAVA_LIBDIR:PATH= -DCASAVA_LIBEXECDIR:PATH= -DCASAVA_INCLUDEDIR:PATH= -DCASAVA_DATADIR:PATH= -DCASAVA_DOCDIR:PATH= -DCASAVA_MANDIR:PATH= -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo
Moving CMakeCache.txt to CMakeCache.txt.removed
Error "Unicode/ICU support for Boost.Regex?... not found"
[root@phanquocchung boost_1_53_0]# ./bootstrap.sh
Building Boost.Build engine with toolset gcc... tools/build/v2/engine/bin.linuxx86/b2
Detecting Python version... 2.4
Detecting Python root... /usr
Unicode/ICU support for Boost.Regex?... not found.
Backing up existing Boost.Build configuration in project-config.jam.5
Generating Boost.Build configuration in project-config.jam...
Bootstrapping is done. To build, run:
./b2
To adjust configuration, edit 'project-config.jam'.
I have installtion bzip2, libxml2 ...
help me
Thank all !
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.