LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 10-30-2006, 08:51 AM   #1
cbjhawks
Member
 
Registered: Oct 2001
Location: Overland Park, KS
Distribution: OpenSuSE 11.4
Posts: 363

Rep: Reputation: 30
Setting my $PATH...syntax is wrong?...please advise...


below is the error message:

linux:/home/linux_lover/Prgs_to_install/toycars-0.3.2 # ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

I search for my path both as root and as user:
root:
linux_lover@linux:~> su
Password:
linux:/home/linux_lover # echo $PATH
/home/linux_lover/bin:/usr/local/bin:/usr/bin:/sbin:/usr/X11R6/bin:/usr/sbin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
linux:/home/linux_lover #

user:
linux:/home/linux_lover # exit
exit
linux_lover@linux:~> echo $PATH
/home/linux_lover/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin

They look the same to me...is there a difference between $path and $PATH ?
here is the syntax I'm trying to use:
set $PATH = /usr/lib/ (for gcc - found, version 4.0.2)
set $path = /usr/lib/

I've searched the forums here and have googled until I'm ready to give up...
the end result is the same /usr/lib/ is not added to path....thoughts, thanks
 
Old 10-30-2006, 09:22 AM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,839

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Quote:
They look the same to me...is there a difference between $path and $PATH ?
Absolutley, linux is case sensitive, so PATH, path, PaTh and pATH are all different.
 
Old 10-30-2006, 09:45 AM   #3
MOS JEFF-INITELY
Member
 
Registered: Sep 2006
Distribution: Windows .. MUAHAHAHA
Posts: 66

Rep: Reputation: 15
if your looking to set your path try this:
export PATH=$PATH:/usr/lib
 
Old 10-30-2006, 10:00 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
From your output, your problem does not have anything to do with paths. All you need to do is install gcc. If it were installed, gcc would be in /usr/bin and not in /usr/lib.
 
Old 11-01-2006, 10:24 AM   #5
cbjhawks
Member
 
Registered: Oct 2001
Location: Overland Park, KS
Distribution: OpenSuSE 11.4
Posts: 363

Original Poster
Rep: Reputation: 30
reddazz - thats where I found...

my gcc version 4.0.2 (found in /usr/lib directory). Would this syntax accomplish what I need?
export PATH=$PATH:/usr/lib/...?
thoughts...thanks.
 
  


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
setting syntax highlight for vi cramer Programming 18 08-14-2006 12:49 PM
MySQL not starting, wrong syntax??? riscphree Linux - Software 2 12-21-2005 08:13 PM
advise on a job path berrance General 3 11-29-2004 03:25 PM
What's wrong with this iptables syntax?? registering Linux - Security 3 06-16-2004 03:54 PM
configured wrong mouse, please advise! penguinlover Linux - Newbie 3 07-02-2003 08:20 PM


All times are GMT -5. The time now is 07:22 AM.

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