Issue installing boost 1.65.1 on Centos 7

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue installing boost 1.65.1 on Centos 7

Boost - Users mailing list

Dear All,

I actually have a problem installing OpenEXR on a Centos 7.

My problem is around ilmbase package and pyilmbas and boost as boost is required. And I have issue installing boost that I download from here
https://gist.github.com/1duo/2d1d851f76f8297be264b52c1f31a2ab

Before i decrive my problem let me explain where I looking around boost.

When I compil ilambase, I got this error message:

$ ./compile --prefix=/opt/ilmbase2-2-0

Both display this message

checking for boost::python... no
*** Could not run the boost::python test program, checking why...
*** The test program could not be compiled.  Is boost::python installed?
*** Check that the cflags (below) includes the boost::python include directory
***
*** Flags used by the test:
***     cflags: -g -O2  -I/usr/include/python2.7 -g -O2  -I/usr/include/python2.7
***     ldflags:  -L/opt/ilmbase-2-2-0/lib    -L/usr/lib64  -L/opt/ilmbase-2-2-0/lib    -L/usr/lib64
***
*** You can also run configure with --disable-boostpythontest to skip this test.
configure: error: Could not compile boost::python test program.

Someone suggested me to install boost as a share.
I downloaded the boost 1.65.1 an untar it into /root/install-package/
Then I tried the following command:
cd  /root/install-package/boost_1_65_1
sudo ./bootstrap.sh --prefix=/opt/boost_1.65.1
sudo ./b2 address-model=64 variant=release threading=multi link=shared

Note that my first attend was with that command

cd  /root/install-package/boost_1_65_1
sudo ./bootstrap.sh --prefix=/opt/boost_1.65.1
sudo ./b2

And boost was install in /opt/boost_1.65.1

But since I use the command

sudo ./b2 address-model=64 variant=release threading=multi link=shared

No folder was created in /opt/boost_1.65.1

and at the of the process, this was displayed

The following directory should be added to compiler include paths:

    /root/install-package/boost_1_65_1

The following directory should be added to linker library paths:

    /root/install-package/boost_1_65_1/stage/lib



Then it's look like it boost has been installed in the same folder, where it has been extracted

The my question, what did I do wrong and how can I install boost in /opt/boost_1.65.1 and make it share for ilmbase and OpenEXR?

Feel you free to ask addintionnal question if I missed to provide you

Many thank for your help
Cheers
Pierre


  


_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: Issue installing boost 1.65.1 on Centos 7

Boost - Users mailing list
AMDG

On 12/15/2017 02:58 AM, Forum (io) via Boost-users wrote:
> <snip>
> /Someone suggested me to install boost as a share.
> I downloaded the boost 1.65.1 an untar it into /root/install-package/
> Then I tried the following command:
> cd  /root/install-package/boost_1_65_1
> sudo ./bootstrap.sh --prefix=/opt/boost_1.65.1
> sudo ./b2 address-model=64 variant=release threading=multi link=shared
>

Add `install` to the b2 command.

> <snip>
> No folder was created in /opt/boost_1.65.1
>
> and at the of the process, this was displayed
>
> The following directory should be added to compiler include paths:
>
>     /root/install-package/boost_1_65_1
>
> <snip>
> Then it's look like it boost has been installed in the same folder,
> where it has been extracted
>
> *The my question, what did I do wrong and how can I install boost in
> /opt/boost_1.65.1 and make it share for ilmbase and OpenEXR?
>
In Christ,
Steven Watanabe
_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users