LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-29-2005, 02:19 PM   #1
gamor
Member
 
Registered: Jul 2004
Posts: 77

Rep: Reputation: 15
environment variable


Hi all,

I am trying to run a system that is supposed to be working. All I needed to do is to set some environment variables and redefine some paths to my system. I am getting a segmentation fault and I am kind of confused as where the problem can be as is the system is quite big.
I am thinking that I might have set the environment variables wrong. It is the first time I did it.

In the README it says to set a certain environment variable to for my version of C and system support.
That is what I did:
export env_var=/usr/bin/gcc

Am I supposed to do something different or am I right



Also I am supposed to have rcp.lockd running. How am I supposed to check if it running. when I use startsrc -s rpc.lockd. I get command not found. I am using bash as a shell.



Thanks of ryour help.
 
Old 04-29-2005, 03:59 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,406

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
no program has the rigth to segfault over something as trivial as an invalid path really... that' should be fine though. if you run "echo $env_var" and get that value back, then anything you run within that shell be get it too.
 
Old 04-29-2005, 08:17 PM   #3
gamor
Member
 
Registered: Jul 2004
Posts: 77

Original Poster
Rep: Reputation: 15
I didn't get anything when I run echo $env_var. I did it from my home directory right? what am I supposed to get.
I didn't really understand your statement.

Also, they were using csh as a shell and I changed it to bash. Do you think something in the make might be different using different shells and might ive me problems. But still, I shouldn't get a segfault.
 
Old 04-30-2005, 08:35 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
from the rpc.lockd man page:
Quote:
rpc.lockd(8) rpc.lockd(8)



NAME
rpc.lockd - start kernel lockd process

SYNOPSIS
/usr/sbin/rpc.lockd

DESCRIPTION
The rpc.lockd program starts the NFS lock manager (NLM) on kernels that
don't start it automatically. However, since most kernels do start it
automatically, rpc.lockd. is usually not required. Even so, running
it anyway is harmless.

SEE ALSO
rpc.statd(8), rpc.nfsd(8)

Last edited by jschiwal; 04-30-2005 at 08:39 AM.
 
Old 04-30-2005, 05:28 PM   #5
gamor
Member
 
Registered: Jul 2004
Posts: 77

Original Poster
Rep: Reputation: 15
Yeah, I already read that in the man page. I just want to know how to check whether it is running. when I use lssrc rpc.lockd to check if it is runniing I get lssrc command unknown. If I do startsrc that is supposed to start it, I get command unknown. I need to figure out a way to know whether it is running (automatically ) or not. Thanks for your help.

Can you please help me more when setting variables. Am I doing it right. Am I just supposed to give the path to where gcc is located. Is that what is meant by setting it to the gcc version.
 
  


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
Environment Variable salmanucit Linux - Software 2 07-21-2004 02:27 AM
environment variable mimi Linux - Newbie 1 04-10-2002 08:29 AM
environment variable mimi Linux - General 2 04-10-2002 07:45 AM
how to set CC environment variable mr.moto General 2 12-18-2001 01:02 AM
how do you set the environment variable CC? mr.moto Linux - General 0 12-17-2001 09:17 PM


All times are GMT -5. The time now is 09:45 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