LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 06-24-2008, 11:12 AM   #1
lies
LQ Newbie
 
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22

Rep: Reputation: 15
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
 
Old 06-24-2008, 11:22 AM   #2
lies
LQ Newbie
 
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22

Original Poster
Rep: Reputation: 15
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
 
Old 06-24-2008, 11:23 AM   #3
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Rep: Reputation: 23
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.
 
Old 06-24-2008, 12:01 PM   #4
lies
LQ Newbie
 
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22

Original Poster
Rep: Reputation: 15
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
 
Old 06-24-2008, 12:10 PM   #5
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Rep: Reputation: 23
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.
 
Old 06-25-2008, 01:14 PM   #6
lies
LQ Newbie
 
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22

Original Poster
Rep: Reputation: 15
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
 
Old 06-25-2008, 01:41 PM   #7
lies
LQ Newbie
 
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22

Original Poster
Rep: Reputation: 15
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
 
Old 06-25-2008, 04:47 PM   #8
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Rep: Reputation: 23
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.
 
Old 06-26-2008, 08:02 AM   #9
lies
LQ Newbie
 
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22

Original Poster
Rep: Reputation: 15
[QUOTE]
Quote:
Originally Posted by ADxD_7 View Post
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?
 
Old 06-26-2008, 08:46 AM   #10
lies
LQ Newbie
 
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22

Original Poster
Rep: Reputation: 15
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.
 
Old 06-26-2008, 01:06 PM   #11
lies
LQ Newbie
 
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to execute a script file? Have file/directory not found error sirius57 Linux - Software 2 11-21-2007 11:43 PM
Using ./ to execute a file in current directory benchmarkman Linux - General 25 06-18-2007 08:48 PM
no such file or directory exists when trying to execute a exe ryedawg Linux - Software 5 12-05-2005 05:42 AM
Who can tell me why I am unable to execute bin file under RHEL AS 4? memorinex2005 Red Hat 7 03-10-2005 08:10 AM
gcc: No such file or directory babysealclubber Linux - Software 2 01-22-2004 03:03 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration