[Boost] Boost 1.39: libdir installation path problem
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
Marco Guazzone wrote:
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
Seems like a bug :-( I'll see what we can do. - Volodya
Hi,
On Mon, May 4, 2009 at 11:01 AM, Vladimir Prus
Marco Guazzone wrote:
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
Seems like a bug :-( I'll see what we can do.
I have the same problem on Ubuntu 8.10 32bits with the following command: $ ./bootstrip.sh --prefix=$HOME/usr/ $ ./bjam install Do there is a workaround? for example, can I do something like that: $ cp **/*.{a,so} $HOME/usr/lib/ -- Johan () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
On Thu, May 7, 2009 at 2:48 PM, Johan Oudinet
Hi,
On Mon, May 4, 2009 at 11:01 AM, Vladimir Prus
wrote: Marco Guazzone wrote:
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
Seems like a bug :-( I'll see what we can do.
I have the same problem on Ubuntu 8.10 32bits with the following command: $ ./bootstrip.sh --prefix=$HOME/usr/ $ ./bjam install
Do there is a workaround? for example, can I do something like that: $ cp **/*.{a,so} $HOME/usr/lib/
As I suggested in my email above, a possible workaround (that works for me) is by specifying the "--libdir" option, that is: $ ./bootstrap.sh --prefix=$HOME/usr --libdir=$HOME/usr/lib $ ./bjam install Another workaround is by setting by hand the libdir properties in the file "project-config.jam", just after issuing the bootstrap.sh command and before the bjam one. Cheers, -- Marco
On Thu, May 7, 2009 at 3:01 PM, Marco Guazzone
As I suggested in my email above, a possible workaround (that works for me) is by specifying the "--libdir" option, that is:
$ ./bootstrap.sh --prefix=$HOME/usr --libdir=$HOME/usr/lib $ ./bjam install
I missed the end of your email, sorry. Thanks for your help. -- Johan () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
I was having the same problem. Solved it with
bjam --libdir=/my/lib/path install
2009/5/7 Johan Oudinet
On Thu, May 7, 2009 at 3:01 PM, Marco Guazzone
wrote: As I suggested in my email above, a possible workaround (that works for me) is by specifying the "--libdir" option, that is:
$ ./bootstrap.sh --prefix=$HOME/usr --libdir=$HOME/usr/lib $ ./bjam install
I missed the end of your email, sorry. Thanks for your help.
-- Johan () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (4)
-
Alain Leblanc
-
Johan Oudinet
-
Marco Guazzone
-
Vladimir Prus