MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I try to compile Vpython in mandriva nd I get this error. What should I do? I justed immersed in Linux seriously just recently. So I cannot decipher that Cryptic code. Also is there anyone that have successfully compiled vpython in mandriva?
Thanks
--------------
Mandriva 2010
Quote:
libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' mandriva
rpm -Uvh \
libboost1.38.0-1.38.0-2mdv2009.1 libicu40-4.0.1-1mdv2009.1
libicu-devel-4.0.1-1mdv2009.1 libboost-devel-1.38.0-2mdv2009.1
( downloaded from Mandriva 2009.1 http://ftp.linux.org.tr/mandrake/200.../main/release/ )
( The default boost-1.39 is not recommended.)
3) cd /usr/include/
4) ln -s ../lib/python2.6/site-packages/numpy/core/include/numpy
.....
cd <path-to-vidle-files>
5) cp -a vidle /usr/lib/python2.6/site-packages/
( from the VIDLE package VIDLE_files_Linux.zip ).
6) ./VIDLE
7) exit
VIDLE is not a must, but is recommended.
cd visual-5.22_release/
make distclean
./configure CC=gcc-3.3.6 CXX=g++-3.3.6
make
.. and when an error appears : ***[wrap_vector.lo] Error 1
.. please reconfigure with ..
./configure
make
( the last two objects will then be made with gcc, g++
= the default version 4.4.1 ).
su
make install
.....
.....
The error "" libtool: compile: specify a tag with `--tag' ""
may appear when doing a) ./configure b) make CC=gcc-xx CXX=g++-xx.
.....
Good luck .....
.....
I have done as described above and all went well with the configure with gcc 3.xx but running make, I get this:
Quote:
[root@localhost visual-5.22_release]# make
Making all in site-packages/visual
make[1]: Entering directory `/home/stefa/Documents/compiled/visual-5.22_release/site-packages/visual'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/stefa/Documents/compiled/visual-5.22_release/site-packages/visual'
Making all in src
make[1]: Entering directory `/home/stefa/Documents/compiled/visual-5.22_release/src'
This is a quiet Makefile. If make exits with an error, check src/build.log to see the complete error message(s). In the event of an error that you cannot debug, please send a message to visualpython-users@lists.sourceforge.net, including the files config.log and src/build.log, requesting assistance.
Compiling ./core/util/atomic_queue.cpp ...
make[1]: *** [atomic_queue.lo] Error 1
make[1]: Leaving directory `/home/stefa/Documents/compiled/visual-5.22_release/src'
make: *** [all-recursive] Error 1
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 8,581
Rep:
Please clear your ' build.log '.
Then run 'make' again.
This will create a new build.log with less text.
And please attach this new version to post # 3,
if you still have issues.
.....
.....
Quote:
[root@localhost visual-5.22_release]# make
'root' is for administrative tasks only !
Running make as root is asking for trouble.
The default build directory is /home/"user"/<some-folder>/
.. Where all commands can be done as unprivileged user.
.....
Suggest : make a new folder for your Vpython,
and start allover again.
.....
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 8,581
Rep:
Working as root is unsafe :
1) It is not a question of if, but when you trash your OS.
And permissions will change, so you no more can work on
those files as an unprivileged user.
2) Makes you vulnerable for attacks, and all others too,
if you are connected to a network / the internet.
Attaching a file : rename to " build.log.txt "
Text attachments can only be suffix .txt .
Use the "paperclip symbol" , see image please ..
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 8,581
Rep:
The numbers are line numbers from your build.log :
Code:
5 warning: boost/thread/mutex.hpp: No such file
6 warning: boost/thread/condition.hpp: No such file
10 warning: boost/python/detail/wrap_python.hpp: No such file
58 warning: boost/thread/xtime.hpp: No such file
59 warning: boost/python/errors.hpp: No such file
All these files are in /usr/include/
.. with a complete boost install.
Forgot to install libboost-devel ? ?
.....
And if you did build boost yourself, with 'make && make install',
the headers are in a "boost-1_3X/boost/" folder, until linked in place.
.....
The numbers are line numbers from your build.log :
Code:
5 warning: boost/thread/mutex.hpp: No such file
6 warning: boost/thread/condition.hpp: No such file
10 warning: boost/python/detail/wrap_python.hpp: No such file
58 warning: boost/thread/xtime.hpp: No such file
59 warning: boost/python/errors.hpp: No such file
All these files are in /usr/include/
.. with a complete boost install.
Forgot to install libboost-devel ? ?
.....
And if you did build boost yourself, with 'make && make install',
the headers are in a "boost-1_3X/boost/" folder, until linked in place.
.....
I have tried to poke around and for some strange reason it is not installed. I'm installing and will post back result
Now it install correctly except when I type import I get import error
Python 2.6.4 (r264:75706, Jan 8 2010, 18:50:31)
[GCC 4.4.1]
Type "help", "copyright", "credits" or "license" for more information.
>>> import visual
Traceback (most recent call last):
File "<string>", line 1, in <fragment>
ImportError: No module named visual
>>>
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 8,581
Rep:
This is from PCLinuxOS 2009.2 :
find /usr/lib/python2.5/ -name *visual*
/usr/lib/python2.5/site-packages/cvisualmodule.so.3.0.0
/usr/lib/python2.5/site-packages/cvisualmodule.so.3
/usr/lib/python2.5/site-packages/visual
/usr/lib/python2.5/site-packages/visual/docs/visual
/usr/lib/python2.5/site-packages/cvisualmodule.la
/usr/lib/python2.5/site-packages/cvisualmodule.so
.....
There actually seems to be no module by name "visual.py"
or anything similar.
ls <path-to>/python2.6/site-packages/visual/
.. will show what you have. (graph.py ui.py materials.py etc. etc.)
Or can it be a path problem ?
python
>>> import graph.py
.. no luck either. But I don't know python that much,
and can't help with these issues.
.....
I also suspect path issue.
I'm working also with VP team especially Bruce and he also suspects the same. Anyway your useful comments might appear on VP wiki or anywhere else as I compiled them and sent them. I don't like Plagiarism so I aknowledged you.
How do I solve the problem. Another Question is, where is python installed?
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 8,581
Rep:
Quote:
Another Question is, where is python installed
The command : rpm -ql python
( Or : rpm -ql python | less )
will show all files in the package 'python' :
/usr/lib/python2.6/ , etc.
.....
.....
P.S. : About the "work arounds" to compile Vpython :
The recommended compiler is gcc-3.4 ?, not available
for Mandriva 2010. Or INSTALL.txt is outdated ?
Therefore a combination of gcc-3.3.6 + gcc-4.4.1 was used.
The gcc-3.4 might just have worked ... on another Linux.
A genuine bug is : Not finding the numpy files, in /usr/include.
.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.