On Wed, Mar 26, 2014 at 5:20 PM, Bishesh Khanal <[email protected]> wrote:
>
>
>
> On Wed, Mar 26, 2014 at 3:29 PM, Johannes Ring <[email protected]> wrote:
>>
>> On Wed, Mar 26, 2014 at 3:00 PM, Bishesh Khanal <[email protected]>
>> wrote:
>> > On Mon, Mar 24, 2014 at 11:23 AM, Johannes Ring <[email protected]>
>> > wrote:
>> >> Did you get this to work? If not, you could try to configure DOLFIN
>> >> with -DBoost_USE_MULTITHREADED:BOOL=OFF.
>> >
>> > I tried this too, but it still gives exactly the same error as before;
>> > ldd
>> > on libdolfin.so still returns the same content. I'm surprised that
>> > fenics
>> > seems to be very difficult to install!
>> > If it helps, here is the output when I do configure with make, before
>> > doing
>> > the make install:
>> >
>> > cmake
>> >
>> > -DCMAKE_INSTALL_PREFIX=/home/bkhanal/Documents/softwares/fenicsComponents/installDirectory/
>> > -DBoost_USE_MULTITHREADED:BOOL=OFF ..
>>
>> The problem is that you have multiple installations of Boost and CMake
>> is not clever enough to pick the correct Boost libraries without some
>> help.
>>
>> Try to export the following environment variables before running cmake
>> (modify them to match your setup):
>>
>>   export BOOST_DIR=/path/to/boost-installation
>>   export BOOST_INCLUDEDIR=${BOOST_DIR}/include
>>   export BOOST_LIBRARYDIR=${BOOST_DIR}/lib
>>   export BOOST_ROOT=${BOOST_DIR}
>>
>> Also remove the CMakeCache.txt file in the build directory before running
>> cmake.
>
>
> I have the following in my .bashrc:
>
> export
> C_INCLUDE_PATH=/home/bkhanal/Documents/softwares/boost_1_55_0/build/include:$C_INCLUDE_PATH
> export
> CPLUS_INCLUDE_PATH=/home/bkhanal/Documents/softwares/boost_1_55_0/build/include:$CPLUS_INCLUDE_PATH
> export
> LIBRARY_PATH=/home/bkhanal/Documents/softwares/boost_1_55_0/build/lib:$LIBRARY_PATH
> export
> LD_LIBRARY_PATH=/home/bkhanal/Documents/softwares/boost_1_55_0/build/lib:$LD_LIBRARY_PATH
>
> export BOOST_DIR=/home/bkhanal/Documents/softwares/boost_1_55_0/build
> export BOOST_INCLUDE_DIR=${BOOST_DIR}/include
> export BOOST_LIBRARY_DIR=${BOOST_DIR}/lib
> export BOOST_ROOT=${BOOST_DIR}
>
> I deleted the CMakeCache.txt (in fact the whole directory) and reran the
> CMake. It still gives me the same error with the same content on libdolfin.
> I export the env. variables by putting them in the .bashrc . Should I do sth
> else here ?

That should be fine, but you must source ~/.bashrc or start a new
terminal to set the variables.

> But then, when running CMake it seems to take up the right path for the
> boost (this I check by running ccmake and I looking at the boost related
> variables). But then afterwards when doing make, I do not understand why it
> is not taking up the path the CMake has stored in the related variables.

When you run make, does cmake run again?

Johannes
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to