Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-29-2005, 02:19 PM   #1
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
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
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
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
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

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

rpc.lockd - start kernel lockd process


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.

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


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 General 2 12-18-2001 01:02 AM
how do you set the environment variable CC? Linux - General 0 12-17-2001 09:17 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:59 AM.

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