ESyS installation problem with libboost
Hi all,
I am trying to install both ESyS-Particle and OpenFOAM on my computer. However, the two softwares used different dependency of libboost, namely, ESyS used libboost1.
Could anyone help me out on this problem? I really need to use both softwares in my work.
Thank you very much.
Regards,
Aaron
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Hi Aaron,
libboost1.54 should work for ESyS-Particle. Give it a try following the installation instructions shown in the link below, and let me know if you encounter any problem.
https:/
Cheers,
Qi
Revision history for this message
|
#2 |
Hi Aaron,
Esys-particle works with libboost-1.47.0 and later versions. Should be fine to use libboost-all-dev package on your system.
Cheers,
Dion
Revision history for this message
|
#3 |
Hi Dion,
Thanks for the answer. I am sorry but I still cannot work it out. My ubuntu system is 14.04. I understand from your previous post that on this ubuntu system, esys-particle depends on libboost1.
Cheers,
Aaron
Revision history for this message
|
#4 |
For diagnostic purposes please provide the output of the following commands:
uname -a
lsb_release -crid
apt-cache policy esys-particle libboost-all-dev
(or - if you are installing from other sources than the Ubuntu repositories - please provide the details)
Revision history for this message
|
#5 |
Hi Aaron,
Can you please post the error message you have got with libboost during the installation?
Cheers,
Qi
Revision history for this message
|
#6 |
Hi Aaron,
If you have already installed libboost-all-dev (e.g. via sudo apt-get install libboost-all-dev), then simply proceed to download, configure and install ESyS-Particle (either from source code or use 'sudo apt-get install esys-particle). The ESyS-Particle installer should find and use the libboost libraries without providing additional path information.
If you encounter issues during the installation of ESyS-P, please post the error messages you obtain.
Cheers,
Dion
Revision history for this message
|
#7 |
Hi Dion and Qi,
I still have the problem during installation. The error occurs when I tried to do the configure command. The output error message is as below:
checking for the Boost filesystem library... /usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
(lots of output here...)
no...
/lib64/
no...
/libboost_
no...
no
configure: error: cannot find the flags to link with Boost filesystem
Currently, I have installed libboost-all-dev. The ubuntu version is 14.04. ESyS-Particle-2.3.2 and 2.3.5 have been tested with the same error outputs.
Please see if you have any idea on how to solve this problem.
Thank you very much.
Cheers,
Aaron
Revision history for this message
|
#8 |
/usr/lib/
libboost-all-dev has libboost-
What is the output of
uname -a
lsb_release -crid
apt-cache policy esys-particle libboost-all-dev libboost-
Revision history for this message
|
#9 |
Hi Manfred,
The output message is:
Linux aaron-Z97-HD3 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
esys-particle:
Installed: (none)
Candidate: 2.2.u2-2ubuntu4
Version table:
2.
500 http://
libboost-all-dev:
Installed: (none)
Candidate: 1.54.0.1ubuntu1
Version table:
1.
500 http://
libboost-
Installed: (none)
Candidate: 1.54.0.1ubuntu1
Version table:
1.
500 http://
libboost-
Installed: (none)
Candidate: 1.54.0-4ubuntu3.1
Version table:
1.
500 http://
1.
500 http://
Please see if you can help.
Cheers,
Aaron
Revision history for this message
|
#10 |
Hi Aaron,
According to your output message, it seems that libboost has not been installed (correctly) in your system. To further confirm this, can you please provide the output of the following command?
dpkg -l | grep libboost
Cheers,
Qi
Revision history for this message
|
#12 |
What output do you get for
apt-get --simulate install esys-particle
Revision history for this message
|
#13 |
Hi Qi,
The output message is:
ii libboost-
ii libboost-
ii libboost-
ii libboost-
ii libboost-
ii libboost-
ii libboost-dev 1.54.0.1ubuntu1 amd64 Boost C++ Libraries development files (default version)
ii libboost-
ii libboost-
ii libboost-
ii libboost-
ii libboost-
ii libboost-
ii libboost-
ii libboost-
ii libboost-
ii libboost-
ii libboost-
ii libboost-
ii libboost1.54-dev 1.54.0-4ubuntu3.1 amd64 Boost C++ Libraries development files
I have installed libboost-all-dev on my Ubuntu 14.04 system. I can use this version of libboost (1.54 version) dependency for OpenFOAM installation. However, the ESYS-particle cannot use the current version of libboost, while it uses libboost1.
Please see if you can help. Thanks.
cheers,
Aaron
Revision history for this message
|
#14 |
Hi Manfred,
I got the following output message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libboost-
python-demgengeo
Suggested packages:
paraview
The following NEW packages will be installed:
esys-particle libboost-
libboost-
0 upgraded, 5 newly installed, 0 to remove and 619 not upgraded.
Inst libboost-
Inst libboost-
Inst libboost-
Inst python-demgengeo (0.99~bzr124-1 Ubuntu:14.04/trusty [amd64])
Inst esys-particle (2.2.u2-2ubuntu4 Ubuntu:14.04/trusty [amd64])
Conf libboost-
Conf libboost-
Conf libboost-
Conf python-demgengeo (0.99~bzr124-1 Ubuntu:14.04/trusty [amd64])
Conf esys-particle (2.2.u2-2ubuntu4 Ubuntu:14.04/trusty [amd64])
Cheers,
Aaron
Revision history for this message
|
#15 |
The simulation looks ok. As you can see it pulls in the packages libboost-
I suggest that you try the real installation
sudo apt-get install esys-particle
Remark:
The line "0 upgraded, 5 newly installed, 0 to remove and 619 not upgraded" indicates that there are several hundreds of package updates available that you did not install on your system yet.
Revision history for this message
|
#16 |
Hi Manfred,
Thank you very much.
It is fine to install esys-particle from the terminal with "sudo apt-get install esys-particle". However, it doesn't work if I install from the source code. The same error occurs when I do the configuration. I have to install from the source code, because I need to added my own contact model in the source code.
The error message is:
checking for the Boost filesystem library... /usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
/usr/lib/
no...
/usr/lib/
no...
/usr/local/
no...
/lib/x86_
no...
/lib/libboost_
no...
/lib64/
no...
/libboost_
no...
no
configure: error: cannot find the flags to link with Boost filesystem
Please see if you can help.
Cheers,
Aaron
Revision history for this message
|
#17 |
Hi Aaron,
Ok, I am assuming you have issued these two commands in the esys-particle source code directory:
$ sh autogen.sh
$ ./configure CC=mpicc CXX=mpic++
and obtained the boost error messages posted above, ending in "configure: error: cannot find the flags to link with Boost filesystem".
If that is the case, let's try to help configure to find the boost libraries. Try this command:
$ ./configure CC=mpicc CXX=mpic++ --with-
Let us know if this works. If not, please post both the command you issued and the error message(s).
Cheers,
Dion
Revision history for this message
|
#18 |
1. Up to now you did not tell that you want to install from source instead the Ubuntu-provided package from the Ubuntu repositories. This is a different issue.
2. "checking for the Boost filesystem library... /usr/lib/
no..."
Apparently you are STILL MISSING libboost-
I suggest that you try installing libboost-
Revision history for this message
|
#19 |
Hi Dion and Manfred,
Thank you very much. Your answers are very helpful. Now, I have successfully installed libboost-
Cheers,
Tao
Revision history for this message
|
#20 |
Thanks Manfred Hampl, that solved my question.
Revision history for this message
|
#21 |
Hi Tao,
That's great! I'm glad to hear you have managed to compile ESyS-Particle finally.
All the best with your research.
Cheers,
Dion