Boost logo

Boost Users :

Subject: [Boost-users] [Boost] Boost 1.39: libdir installation path problem
From: Marco Guazzone (marco.guazzone_at_[hidden])
Date: 2009-05-03 04:47:56


Hi,
I'm installing Boost 1.39 on Fedora 10 64bit (gcc 4.3.2) with the
following command:

$ ./bootstrip.sh --prefix=/home/marco/sys
$ ./bjam install

The installation process showed a lot of error like this:

--- [error_snip] ---
common.copy /lib/libboost_math_tr1f-gcc43-mt-1_39.so.1.39.0
cp: cannot create regular file
`/lib/libboost_math_tr1f-gcc43-mt-1_39.so.1.39.0': Permission denied

    cp "bin.v2/libs/math/build/gcc-4.3.2/release/threading-multi/libboost_math_tr1f-gcc43-mt-1_39.so.1.39.0"
 "/lib/libboost_math_tr1f-gcc43-mt-1_39.so.1.39.0"

...failed common.copy /lib/libboost_math_tr1f-gcc43-mt-1_39.so.1.39.0...
--- [/error_snip] ---

In effect it seems that the script "boostrap.sh" did not correctly
write the "libdir" configuration in the JAM project config file (at
least as expected from what is said in the "boostraip.sh --help"
message, which claims that "libdir" defaults to "EPREFIX/lib" which
in turns defaults to "PREFIX/lib").

Here below is the generated "project-config.jam" file:

--- [snip] ---
# Boost.Build Configuration
# Automatically generated by bootstrap.sh

import option ;
import feature ;

# Compiler configuration. This definition will be used unless
# you already have defined some toolsets in your user-config.jam
# file.
if ! gcc in [ feature.values <toolset> ]
{
    using gcc ;
}

project : default-build <toolset>gcc ;

# Python configuration
using python : 2.5 : /usr ;

# List of --with-<library> and --without-<library>
# options. If left empty, all libraries will be built.
# Options specified on the command line completely
# override this variable.
libraries = ;

# These settings are equivivalent to corresponding command-line
# options.
option.set prefix : /home/marco/Sys ;
option.set exec-prefix : /home/marco/Sys ;
option.set libdir : /lib ;
option.set includedir : /home/marco/Sys/include ;
--- [/snip] ---

To solve, I have to explicitly force the lib path with
"--libdir=/home/marco/Sys/lib".

Ciao,

-- Marco


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net