| Linux - Kernel This forum is for all discussion relating to the Linux kernel. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-24-2008, 11:12 AM
|
#1
|
|
LQ Newbie
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22
Rep:
|
unable to execute gcc: No such file or directory
[root@localhost oof2-2.0.5a3]# python setup.py build --skip-swig install
running build
running build_shlib
running makedepend on .C files.
Testing if blas links correctly
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -g -fPIC -Ibuild/temp.linux-i686-2.5-2d/SRC -ISRC -c tmp6RoLq8/blastest.c -o tmp6RoLq8/blastest.o
unable to execute gcc: No such file or directory
removing 'tmp6RoLq8' (and everything under it)
error: can't compile blas test
|
|
|
|
06-24-2008, 11:22 AM
|
#2
|
|
LQ Newbie
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22
Original Poster
Rep:
|
sorry
I'm sorry, I hit a wrong button or something before I was done with my post... I just installed mandriva 2008.1 (spring) on my computer and try to reinstall a program that I was using before (OOF2). I got the error message that is posted in the first /previous) post.
The thing is, I have gcc installed (I assume that is the issue). I have no idea how to proceed... Do I need to install some kind of devel packet?
Any suggestions are appreciated.
Cheers,
Lies
|
|
|
|
06-24-2008, 11:23 AM
|
#3
|
|
Member
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152
Rep:
|
Sounds to me like gcc is not in your path -
What does your path look like? -
O and I dont think this is the right place for this post - this has nothing really to do with the linux kernel
Last edited by ADxD_7; 06-24-2008 at 11:25 AM.
|
|
|
|
06-24-2008, 12:01 PM
|
#4
|
|
LQ Newbie
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22
Original Poster
Rep:
|
where should i have posted it then? i saw similar questions in this forum, that's why i decided to post in here.
anyways, what do you mean with that? and how do i check if/make it so that it is in my path?
thank you,
lies
|
|
|
|
06-24-2008, 12:10 PM
|
#5
|
|
Member
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152
Rep:
|
I dont think where you posted it is a big deal I was just pointing that out for the future - and I guess I would have just not put it under this sub-catagory - linux - software would be the best - but seriously no worries
Do this:
echo $PATH
And post the output - also what shell are you using - You can tell by doing
echo $SHELL
post this and then I can show you how to add it depending on what shell you are using
Last edited by ADxD_7; 06-24-2008 at 12:13 PM.
|
|
|
|
06-25-2008, 01:14 PM
|
#6
|
|
LQ Newbie
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22
Original Poster
Rep:
|
This is what I got:
[root@localhost oof2-2.0.5a3]# echo $PATH
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/lib/qt3//bin
[root@localhost oof2-2.0.5a3]# echo $SHELL
/bin/bash
If I type "whereis gcc", I get: "gcc: /usr/lib/gcc"
So does that need to be added to the PATH??
Explain please (if not, or how, if so)
Thanks
|
|
|
|
06-25-2008, 01:41 PM
|
#7
|
|
LQ Newbie
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22
Original Poster
Rep:
|
After "playing around" for a bit I realized that I didn't have the blas library installed, so I did. With that the (I guess necesary) gcc "-files" got installed. But now I get a different error:
[root@localhost oof2-2.0.5a3]# python setup.py build --skip-swig install
running build
running build_shlib
running makedepend on .C files.
Testing if blas links correctly
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fexceptions -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -g -fPIC -Ibuild/temp.linux-i686-2.5-2d/SRC -ISRC -c tmpQ9tuzg/blastest.c -o tmpQ9tuzg/blastest.o
gcc -pthread tmpQ9tuzg/blastest.o -Lbuild/temp.linux-i686-2.5-2d/shlib -llapack -lblas -lm -o tmpQ9tuzg/blastest
/usr/lib/gcc/i586-mandriva-linux-gnu/4.2.2/../../../liblapack.so: undefined reference to `etime_'
collect2: ld returned 1 exit status
gcc -pthread tmpQ9tuzg/blastest.o -L/usr/local/lib -Lbuild/temp.linux-i686-2.5-2d/shlib -llapack -lblas -lm -lg2c -o tmpQ9tuzg/blastest
/usr/bin/ld: cannot find -lg2c
collect2: ld returned 1 exit status
gcc -pthread tmpQ9tuzg/blastest.o -L/usr/local/lib -Lbuild/temp.linux-i686-2.5-2d/shlib -llapack -lblas -lm -lgfortran -o tmpQ9tuzg/blastest
/usr/lib/gcc/i586-mandriva-linux-gnu/4.2.2/../../../liblapack.so: undefined reference to `etime_'
collect2: ld returned 1 exit status
removing 'tmpQ9tuzg' (and everything under it)
error: can't link blas!
I'm not sure if this is deviating too much from my original problem, but any suggestion/help are/is appreciated.
Lies
|
|
|
|
06-25-2008, 04:47 PM
|
#8
|
|
Member
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152
Rep:
|
First thing I would do is edit your $HOME/.bashrc - under the PATH variable add /usr/lib and just for /usr/local/lib and if I was you I would put /usr/local/bin before /usr/bin - just a personal preference because I want it to look in /usr/local/bin before /usr/bin -
Then just to make it clean take away the double / from the usr/lib/qt3//bin
in your path -
If you do not have a .bashrc - make one in you home directory and add this too it
PATH=$PATH:/usr/lib:/usr/local/lib
But you should already have one in your home directory
Now is where I need to know what it is you are trying to compile - because now it looks like you are missing a library that is needed to compile - but first do the above - Open a NEW terminal and then try and compile it - and post the results
Regards,
Last edited by ADxD_7; 06-25-2008 at 04:49 PM.
|
|
|
|
06-26-2008, 08:02 AM
|
#9
|
|
LQ Newbie
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22
Original Poster
Rep:
|
[QUOTE]
Quote:
Originally Posted by ADxD_7
First thing I would do is edit your $HOME/.bashrc - under the PATH variable add /usr/lib and just for /usr/local/lib and if I was you I would put /usr/local/bin before /usr/bin - just a personal preference because I want it to look in /usr/local/bin before /usr/bin -
|
I'm sorry, I'm new at this... I cannot find a .bashrc file in my home directory, there is a etc/bashrc, would this be the one to edit? If not, you told me to make one myself. Should it just contain that line (PATH=$PATH:/usr/lib:/usr/local/lib)? And I have to call it .bashrc and put in in my home directory? What does "edit it under the PATH variable" mean, and how do I do that?
Quote:
Then just to make it clean take away the double / from the usr/lib/qt3//bin
in your path -
|
How do I do this?
|
|
|
|
06-26-2008, 08:46 AM
|
#10
|
|
LQ Newbie
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22
Original Poster
Rep:
|
I found the home/felice/.bashrc file. It looks like this:
Quote:
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
|
How do I need to change it?
Thank you.
|
|
|
|
06-26-2008, 01:06 PM
|
#11
|
|
LQ Newbie
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22
Original Poster
Rep:
|
Ok, I got the program that I was trying to install (OOF2) installed. After upgrading my system (which included lapack libraries; which are 'associated' with BLAS) the installation worked.
Thank you for your help (and I wouldn't mind getting answers to my previous questions: they may be handy in the future...)
Thanks
Lies
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:05 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|