LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-17-2003, 05:39 AM   #1
Tommi
Member
 
Registered: Apr 2003
Posts: 185

Rep: Reputation: 30
How to make a path for a program?


Yo!

I have been trying to install such a cad freeware for Linux as BRL-CAD but I dont know how to make a functional path for it.

I have included a part of its installation notes for here, but I dont really understand it.

My system is Redhat 9.0. Please help newbie.

-Tommi




Updating Your Search Path
Bourne Shell (/bin/sh)
If you are a Bourne Shell user (/bin/sh, generally the default shell on most systems), you will need to edit your ".profile" file, and modify the PATH variable to include the full path name of your "bin" directory (BINDIR). In the editor, look for a line that looks something like:
PATH=/usr/ucb:/bin:/usr/bin:/usr/local/bin::

and add the path name of your "bin" directory after the equals ("=") sign. In this example, the new form would look like one of the two lines below; the first line is the example non-production form, and the second line is the production form.
PATH=/a/d/mike/bin:/usr/ucb:/bin:/usr/bin:/usr/local/bin::

PATH=/usr/brlcad/bin:/usr/ucb:/bin:/usr/bin:/usr/local/bin::

where the full path name for the "bin" directory has been added to the front of your PATH specification. Then, you must run:
. .profile

(dot space dot-profile) to have the Shell set up your new PATH specification.

Last edited by Tommi; 06-17-2003 at 05:41 AM.
 
Old 06-17-2003, 06:08 AM   #2
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 45
If you want to execute any program from any place you call it, you have to add it to your PATH, if you are using sh edit .cshrc if it's bash .bashrc and add to the PATH your executable's location. e. g

PATH=/usr/myExecutables/bin/:$PATH

then you can execute my execs from everywhere.

Add the hole path to the "bin" catalog of BRL-CAD to PATH and it should work.
Hope this helps.
 
Old 06-17-2003, 06:14 AM   #3
Tommi
Member
 
Registered: Apr 2003
Posts: 185

Original Poster
Rep: Reputation: 30
Yo!

Your reply was QUICK!!

But what is "bin" catalog.

I think I have done as you tell, but it does not seem to help.

The system looses the "path" and program does not seem to work at all.

A backward barrier, perhaps? My Linux is too new?

-Tommi
 
Old 06-17-2003, 09:15 AM   #4
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 45
Ok, as I understand you have already installed the software, so you have to edit one of the files I said before (.bashrc, or .cshrc)and add this line:

PATH=/usr/brlcad/bin:/usr/ucb:/bin:/usr/bin:/usr/local/bin:$PATH

Then do this:
. ./bashrc for bash
. ./cshrc for sh

The bin (binary) catalog is where the executables are, in this case
/usr/brlcad/bin and /usr/ucb

there's no problem with backward barrier, or with how new is you linux distribution.
 
Old 06-17-2003, 09:32 AM   #5
acid_kewpie
Moderator
 
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
moved to a suitable forum, Linux - Software
 
Old 06-17-2003, 10:31 AM   #6
Tommi
Member
 
Registered: Apr 2003
Posts: 185

Original Poster
Rep: Reputation: 30
allright, many thanks!

-Tommi
 
Old 06-17-2003, 11:48 AM   #7
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 45
you're welcome
 
Old 06-18-2003, 03:54 AM   #8
Tommi
Member
 
Registered: Apr 2003
Posts: 185

Original Poster
Rep: Reputation: 30
Yo!

I have not proceed and I am a little confused now, as it often does with *nix.

Here is my .bashrc, how it *should* be written?

------------------------------------------------------------------------------------

# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

PATH=/usr/brlcad/bin:/usr/ucb:/bin:/usr/bin:/usr/local/bin:$PATH

------------------------------------------------------------------------------------

Please tell what is wrong...

And this is my "cshrc", its unchanged, though. How to fix it?
------------------------------------------------------------------------------------
# /etc/cshrc
#
# csh configuration for all shell invocations.

# by default, we want this to get set.
# Even for non-interactive, non-login shells.
[ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]
if $status then
umask 022
else
umask 002
endif

if ($?prompt) then
if ($?tcsh) then
set prompt='[%n@%m %c]$ '
else
set prompt=\[`id -nu`@`hostname -s`\]\$\
endif
endif

if ( -d /etc/profile.d ) then
set nonomatch
foreach i ( /etc/profile.d/*.csh )
if ( -r $i ) then
source $i
endif
end
unset i nonomatch
endif

------------------------------------------------------------------------------------


My changes did not make any effect.

Anyway I think it accepted my new path temporarily, when I just run the

"PATH=/usr/brlcad/bin:/usr/ucb:/bin:/usr/bin:/usr/local/bin:$PATH"

And that affected. BUT then I run the command "mged" which is probably the rightone, and it gave me this:
------------------------------------------------------------------------------------
mged: relocation error: /usr/brlcad/lib/libfb.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference

------------------------------------------------------------------------------------

I tried to make symbolic links to those files but I wasnt successfull. I hope I didnt mess up the whole installation.

I hope you have patience to help. Sorry I am quite a newbie, I need to ask elementary questions...


-Tommi
 
Old 06-18-2003, 09:28 AM   #9
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 45
Well, your ".bashrc", it has to be with the dot in the beginning, is ok but when I was refering to .cshrc I meant in your catalog.
I think you should create a file called ".cshrc" in your home directory, then add the PATH line there and do
tcsh . .cshrc in the command line.
Hope this helps.
 
Old 06-18-2003, 09:31 AM   #10
Tommi
Member
 
Registered: Apr 2003
Posts: 185

Original Poster
Rep: Reputation: 30
allright, I will test this.

But what about the relocation error? I mean this:

mged: relocation error: /usr/brlcad/lib/libfb.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference

Just because the path isn't there?

-Tommi
 
Old 06-18-2003, 10:14 AM   #11
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 45
No, it isn't due to the PATH,
I'm not sure but I think it's because there are some different versions of libfb.so in your computer. If you have the source code you can try to do "make install' in the `lib/' directory and then in the `src/' directory. You can also remove the previous`libfb.so' files and reinstall the software. Sorry, I don't know much about that.
 
Old 06-18-2003, 10:44 AM   #12
Tommi
Member
 
Registered: Apr 2003
Posts: 185

Original Poster
Rep: Reputation: 30
Yes, you are right...but this is really tedious task.
I'll be back!

-Tommi
 
Old 06-19-2004, 06:38 PM   #13
kendo_paul
LQ Newbie
 
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
Solution to error message in BRLCAD when using mged

If you get the following error when you try "mged" (mged is part of BRLCAD):
"mged: relocation error: /usr/brlcad/lib/libfb.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference" then you need to type the following in a bash shell:
"export LD_ASSUME_KERNEL=2.4.1"
Then type "mged" and it should work. At least, it did for me in Red Hat 9.0.
 
  


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 do I make sure something is in right path? Ken1015 Linux - Newbie 3 09-03-2005 10:02 PM
can i make a script or program make a phone call? nephish Linux - Software 2 08-15-2005 10:02 PM
i make a program using forte how can i generate from that program an rpm abdelhlims Programming 0 07-13-2004 01:10 PM
How to make PATH? tommilaiho Linux - Software 4 12-01-2003 06:01 PM
How to make a path for a program? Tommi Linux - General 1 06-17-2003 06:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration