problem of installation Yade
Hi all,
Hi Anton,
I have still problem of installation Yade on my PC.
For the Anton'answer, the package "python-dev" is installed, for the informations below:
Paquet : python-dev
État: installé
Automatiquement installé: non
Version : 2.7.2-9ubuntu4
Priorité : optionnel
Section : python
Responsable : Ubuntu Developers <email address hidden>
Taille décompressée : 33,8 k
Dépend: python (= 2.7.2-9ubuntu4), python2.7-dev (>= 2.7.2-3~)
Remplace: python2.7 (< 2.7.3)
Description : header files and a static library for Python (default)
Header files, a static library and development tools for building
Python modules, extending the
Python interpreter or embedding Python in applications.
This package is a dependency package, which depends on Debian's default
Python version (currently
v2.7).
Please help me for my problems !
Anh-Tuan
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- TONG Anh Tuan
- Solved:
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
Hi Anh-Tuan,
Did you install all required packages from the link below [1]?
Please, show your scons.profile-
FYI, 12.04 is shipped with yade-0.70 in the main archive. If this
version is suitable for you, just:
sudo apt-get install yade
[1] https:/
Anton
Revision history for this message
![]() |
#2 |
Hi Anton,
Yes, all required packages are installled from [1].
And here are informations received:
FOR scons.profile-
PREFIX = 'attong@
features = 'cgal,log4cxx,
jobs = 1
chunkSize = 2
version = 'attong'
CPPPATH = '/usr/include/
CXXFLAGS = ['-DFLOW_ENGINE']
SHCCFLAGS = ['-fPIC']
FOR config.log :
file /home/3S-
Configure(confdir = /home/3S-
scons: Configure: Checking whether c++ compiler "g++" works...
/home/3S-
|#include<
|int main(int argc, char**argv)
|
g++ -o /home/3S-
g++ -o /home/3S-
scons: Configure: yes
scons: Configure: Finding libstdc++ library...
scons: Configure: (cached) /usr/lib/
scons: Configure: Checking for pthread_exit(NULL) in C library pthread...
/home/3S-
|
|
|#include "pthread.h"
|
|int
|main() {
| pthread_exit(NULL);
|return 0;
|}
|
gcc -o /home/3S-
gcc -o /home/3S-
scons: Configure: yes
scons: Configure: Checking for Python development files...
/home/3S-
|#include<
|int main(int argc, char **argv)
|
g++ -o /home/3S-
g++ -o /home/3S-
/home/3S-
conftest_
conftest_
collect2: ld returned 1 exit status
scons: Configure: error
scons: Configure: Checking for required python modules...
scons: Configure: (cached) all ok
scons: Configure: Checking boost libraries...
/home/3S-
|#include<
|int main(void)
g++ -o /home/3S-
g++ -o /home/3S-
/home/3S-
|#include<
|int main(void)
g++ -o /home/3S-
g++ -o /home/3S-
/home/3S-
|#include<
|int main(void)
g++ -o /home/3S-
g++ -o /home/3S-
/home/3S-
|#include<
|int main(void)
g++ -o /home/3S-
g++ -o /home/3S-
/home/3S-
|#include<
|int main(void)
g++ -o /home/3S-
g++ -o /home/3S-
/home/3S-
|#include<
|int main(void)
g++ -o /home/3S-
g++ -o /home/3S-
/home/3S-
|#include<
|int main(void){try{} catch (const boost::
g++ -o /home/3S-
g++ -o /home/3S-
/home/3S-
|#include<
|int main(void)
g++ -o /home/3S-
g++ -o /home/3S-
/home/3S-
|#include<
|int main(void)
g++ -o /home/3S-
g++ -o /home/3S-
/home/3S-
conftest_
/home/3S-
conftest_
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
collect2: ld returned 1 exit status
/home/3S-
|#include<
|int main(void)
g++ -o /home/3S-
g++ -o /home/3S-
/usr/bin/ld: cannot find -lboost_python-mt
collect2: ld returned 1 exit status
scons: Configure: Failures: boost_python
scons: Configure: Checking for C++ header file boost/foreach.
/home/3S-
|
|#include <boost/foreach.hpp>
|
|
g++ -o /home/3S-
scons: Configure: yes
scons: Configure: Checking for C++ header file Eigen/Core...
/home/3S-
|
|#include "Eigen/Core"
|
|
g++ -o /home/3S-
scons: Configure: yes
scons: Configure: Checking for C++ header file loki/NullType.h...
/home/3S-
|
|#include "loki/NullType.h"
|
|
g++ -o /home/3S-
scons: Configure: yes
Revision history for this message
![]() |
#3 |
Your problem is here:
/usr/bin/ld: cannot find -lboost_python-mt
collect2: ld returned 1 exit status
scons: Configure: Failures: boost_python
Another user had a similar problem with libboost and he was able to solve it, see here:
https:/
Please try to install missing packages. You can compare your packages with my packages (see my last post on question 188032). Then you will find the one, that is missing.
Revision history for this message
![]() |
#4 |
Hi all,
Hi Anton,
I compile successfully the yade installation (with the command 'scons'). However, when starting Yade for running my script, I got the following error:
Welcome to Yade bzr3055
Traceback (most recent call last):
File "./yade-
import yade
File "/home/
import boot
ImportError: /home/3S-
And, in the config.log, the following error that I saw:
/home/3S-
|
pyrcc4
PyQt resource compiler
Usage: pyrcc4 [options] <inputs>
Options:
-o file Write output to file rather than stdout
-py2 Generate code for any Python v2.x version (default)
-py3 Generate code for any Python v3.x version
-name name Create an external initialization function with name
-threshold level Threshold to consider compressing files
-compress level Compress input files by level
-root path Prefix resource access path with root path
-no-compress Disable all compression
-version Display version
-help Display this information
/home/3S-
|
pyuic4
Error: one input ui-file must be specified
what is my probleme ? Anybody could give me a solution for my problem?
Thanks !
Anh Tuan
Revision history for this message
![]() |
#6 |
Hi Anton,
Hi Bruno,
Hi all,
I tried do as the answer of Bruno for the Bug number of 968188; so in my profile (scons.
PREFIX = '/home/
features = 'cgal,log4cxx,
hotPlugins = 'FlowEngine'
version = 'trunk'
CPPPATH = '/usr/include/
CXXFLAGS = ['-DFLOW_ENGINE']
SHCCFLAGS = ['-fPIC', '-lgmp']
but I still get the same error when starting to run Yade. I don't know what I have to do now.
Anybody having the same problem can give me a solution ?
Thanks.
Anh Tuan
Revision history for this message
![]() |
#7 |
Did you update your code Anh Tuan? What is your version?
Revision history for this message
![]() |
#8 |
Hi Bruno,
The command for update my code is: "bzr update", it'is right?
Anh Tuan
Revision history for this message
![]() |
#9 |
Hi Bruno,
I have still a problem bellow when running my script:
attong@
Welcome to Yade bzr3076
TCP python prompt on localhost:9000, auth cookie `udcesa'
XMLRPC info provider on http://
Running script ErosionInterneT
WARN /home/3S-
WARN /home/3S-
WARN /home/3S-
Traceback (most recent call last):
File "./yade-
execfile(
File "ErosionInterne
flow=
NameError: name 'FlowEngine' is not defined
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view, F10 both, F9 generator, F8 plot. ]]
Yade [1]:
What does it means with my PC ?
Thanks alot,
Anh Tuan
Revision history for this message
![]() |
#10 |
Did you add the plugin FlowEngine to your scons.profile?
Like this: hotPlugins = 'FlowEngine'
Luc
Revision history for this message
![]() |
#11 |
Hi Luc,
Hi all,
Here is my scons.profile-
attong@
PREFIX = '/home/
features = 'gts,opengl,
hotPlugins = 'FlowEngine'
version = 'trunk'
CPPPATH = '/usr/include/
CXXFLAGS = ['-DFLOW_ENGINE']
SHCCFLAGS = ['-fPIC']
What is my problem ?
Thanks alot,
Anh Tuan
Revision history for this message
![]() |
#12 |
Try to add cgal to your features (check if it is installed on t=your computer)
Revision history for this message
![]() |
#13 |
Hi Luc,
Here is an error after adding cgal to my features and compiling by the command scons:
scons: Reading SConscript files ...
@@@ Using profile erosion (scons.
Eigen 2 math library will be used
Yade version is `trunk' (bzr3076), installed files will be suffixed with `-trunk-erosion'.
All intermediary files will be in `/home/
Mkdir("
Checking whether c++ compiler "g++" works...yes
Finding libstdc++ library... (cached) /usr/lib/
Checking for pthread_exit(NULL) in C library pthread... yes
Checking for Python development files... ok
Checking for C++ header file numpy/ndarrayob
Checking for required python modules... (cached) all ok
Checking boost libraries... all ok
Checking for C++ header file boost/foreach.
Checking for C++ header file Eigen/Core... yes
Checking for C++ header file loki/NullType.h... yes
Checking for glutGetModifiers() in C++ library glut... yes
Checking for QGLViewer() in C++ library qglviewer-qt4... yes
Checking for vtkInstantiator
Checking for gts_object_class() in C++ library gts... yes
log4cxx support was removed. Please, do not use this feature.
Checking for CGAL::Exact_
Rebuilding combined files, since the md5 has changed.
scons: done reading SConscript files.
scons: Building targets ...
> /home/3S-
Chmod("
> /home/3S-
Chmod("
C py/3rd-
C py/3rd-
C py/3rd-
C py/3rd-
C py/3rd-
C py/3rd-
C py/3rd-
C py/3rd-
C py/3rd-
C py/3rd-
> /home/3S-
C /home/3S-
> /home/3S-
C /home/3S-
In file included from /home/3S-
/home/3S-
/home/3S-
In file included from /home/3S-
/home/3S-
/home/3S-
/home/3S-
In file included from /home/3S-
/home/3S-
/home/3S-
/home/3S-
/home/3S-
L libyade-support.so
> /home/3S-
L _gts.so
> /home/3S-
ln -s -f ../py/gts/_gts.so /home/3S-
C pkg/dem/
pkg/dem/
pkg/dem/
pkg/dem/
/home/3S-
/home/3S-
scons: *** [/home/
scons: building terminated because of errors.
Thanks alot,
Anh Tuan
Revision history for this message
![]() |
#14 |
Strange... Did you try recompile from scratch by typing
scons -c
before compiling wit scons?
Revision history for this message
![]() |
#15 |
Yes, before compiling with scons, i tried to do by typing:
scons clean.
That's the same as:
scons -c
I don't know what is problem of function FlowEngine.
A.Tuan
Revision history for this message
![]() |
#16 |
OK, I think I get it.
You should add DLINSOLV to the CXXFLAGS in your scons.profile like this:
CXXFLAGS = ['-DFLOW_ENGINE', '-DLINSOLV']
So?
Revision history for this message
![]() |
#17 |
-DLINSOLV will not help. FlowEngine is supposed to work without it.
Anh Tuan, did your read my previous mail (private, days ago) about
getting new versions of flow lib from Emanuele's svn repository?
The current version compiles for everyone else, so I guess you missed
something.
Revision history for this message
![]() |
#18 |
-DLINSOLV was the quick and not proper way to make Anh Tuan's able to work with his code, assuming that he is using the associated updated linsolv files. I need to implement the compressibility to periodic flow related files so as to solve Anh Tuan's problem. I am working on it today.
Revision history for this message
![]() |
#19 |
Thanks Luc, that solved my problem.
Anh Tuan