LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   libtool: compile: unable to infer tagged (https://www.linuxquestions.org/questions/mandriva-30/libtool-compile-unable-to-infer-tagged-787278/)

evstevemd 02-05-2010 01:14 PM

libtool: compile: unable to infer tagged
 
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

knudfl 02-05-2010 03:39 PM

Vpython .. .. Mandriva 2010
 
Welcome to LQ. .. .. :) ..

A) visual-5.22_release.tar.bz2
B) VIDLE_files_Linux.zip

1) su
2) urpmi python-numpy-devel libgtkglextmm-devel tkinter \
libglademm2.4-devel libpython2.6-devel gcc3.3 gcc3.3-c++

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 ..... :)
.....

evstevemd 02-06-2010 05:48 AM

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
I have attached the build log

Thanks for replying

knudfl 02-06-2010 06:30 AM

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.
.....

evstevemd 02-06-2010 12:12 PM

I did and It went again wrong
Here is a log again. Anyway why would make under root be a trouble?
I have anyway stopped that behaviour

knudfl 02-07-2010 02:29 AM

1 Attachment(s)
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 ..

evstevemd 02-07-2010 08:06 AM

1 Attachment(s)
Here I have attached. I didn't evenknew it wasn't attaching anything.
Thank you!

knudfl 02-07-2010 11:12 AM

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.
.....

evstevemd 02-07-2010 11:37 AM

Quote:

Originally Posted by knudfl (Post 3855755)
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

evstevemd 02-07-2010 12:24 PM

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
>>>

knudfl 02-07-2010 12:41 PM

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.
.....

evstevemd 02-08-2010 07:17 AM

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?

knudfl 02-09-2010 12:57 AM

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.
.....


All times are GMT -5. The time now is 10:11 PM.