LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Please help to install BRL-CAD. (https://www.linuxquestions.org/questions/linux-software-2/please-help-to-install-brl-cad-72682/)

Tommi 07-14-2003 03:24 PM

Please help to install BRL-CAD.
 
Yo, please help. Newbie again. :-)

I am trying to install Brl-Cad, a promising cad software, which is free. Here is a link for the installation page. But I do not understand how to install it. Below is err-log, and part of its manual. All help, even a little hint, may be a big help.

-Tommi




http://brlcad.survice.com/mirror/Brl...rrent/src.html


B R L - C A D S E T U P
=========================
BRLCAD_ROOT=/usr/brlcad
BRLCAD_BINDIR=/usr/brlcad/bin
BRLCAD_MANDIR=/usr/brlcad/man/man1

Verifying that /usr/brlcad/bin is in your search path.
setup.sh ERROR: /usr/brlcad/bin (BRLCAD_BINDIR) is not in your Shell search
pat
h!
setup.sh ERROR: Software setup can not proceed until this has been fixed.
setup.sh ERROR: Consult installation directions for more information,
setup.sh ERROR: file: install.doc, section INSTALLATION DIRECTORIES.




Be sure the destination directory for the installation exists.
% mkdir /usr/brlcad
If you choose a directory other than /usr/brlcad you will need to set the environment variable BRLCAD_ROOT to be the name of this directory. Do not use the directory where you unpacked the sources as the installation directory. Because a number of paths are compiled into the package, it is not possible to compile the package for one location, then move it to another.
Be sure that /usr/brlcad/bin or $BRLCAD_ROOT/bin is in your shell path:
/bin/sh:
BRLCAD_ROOT=/foobar/brlcad
PATH=$PATH:/foobar/brlcad/bin
export PATH
csh:
setenv BRLCAD_ROOT /foobar/brlcad
set path=($path /foobar/brlcad/bin)


-Tommi :newbie:

Tommi 07-15-2003 01:11 PM

I was told to do like this, but I still do not know exactly what to do, please read this discussion:



> Now you need to add "/usr/brlcad/bin" to your search
> path. There are two possibilities:
>
> If you use "bash" or "sh" shell (most likely) run
these two commands
> and also add these two lines to a ".profile" file in your home
> directory:
>
> PATH=$PATH:/usr/brlcad/bin
> export PATH
>
> or if you use "csh" or "tcsh" run this command and
also add it to a
> ".cshrc" file in your home directory:
>
> set path=($path /usr/brlcad/bin)
>
> To tell which shell you are using, run "ps".


And I replied like this...




Yes, I have been trying to do a path, but cannot find ”.profile” file from home
directory. Instead I found “profile” from /etc/ directory. Please tell where to
find right file from redhat 9.0 and how to edit it exactly. Here is my
/etc/profile. If it is a right file, please edit it properly, that is easiest
way to proceed, I think.

I have done "updatedb" as root, locate cannot find the
".profile" -file

Thanks a lot!

-Tommi

My profile:

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

# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}

# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi

pathmunge /usr/X11R6/bin after

unset pathmunge

# No core files by default
ulimit -S -c 0 > /dev/null 2>&1

USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"

HOSTNAME=`/bin/hostname`
HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done

unset i


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

Thanks for any help!

-Tommi :newbie:

stevo011 05-20-2009 01:54 AM

Hi Tommi,

Ok its a few years late to reply, but here goes anyway.

The .profile file they are talking about is in your home directory and its usually called .bash_profile

e.g. /home/tommi/.bash_profile

You can just append that line to by adding a colon at the end of your PATH line and adding in the BRL Path after that, then saving the file.


All times are GMT -5. The time now is 09:20 AM.