LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-24-2006, 09:38 AM   #1
lcaley
Member
 
Registered: Sep 2006
Distribution: openSUSE 10.2
Posts: 50

Rep: Reputation: 15
adding a dir to PATH


Hey guys, I'm an absolute noobie to linux. I'm running Ubuntu. So far, I like it. I'm trying to install my video drivers though, and thats giving me some trouble. It goes through the start-up of the program, and then gives me an error:

ERROR: Unable to find the system utility `ld`; please make sure you have the
package 'binutils' installed. If you do have binutils installed,
then please check that `ld` is in your PATH.


so I went out and installed binuntils, and I've been looking around on various forums and resources on the internet for a few days now, and I can't find anything that seems to work adding this folder to my path.


Thanks for all help available.
 
Old 09-24-2006, 09:51 AM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Use a line in your ~/.bashrc like this to make in on reboot.
export PATH=$PATH:/opt/kde3/bin

Brian
 
Old 09-24-2006, 09:58 AM   #3
lcaley
Member
 
Registered: Sep 2006
Distribution: openSUSE 10.2
Posts: 50

Original Poster
Rep: Reputation: 15
where would i put it? my .bashrc file looks like this:



# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(2) for more options
export HISTCONTROL=ignoredups

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color)
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
;;
*)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
;;
esac

# Comment in the above and uncomment this below for a color prompt
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
;;
*)
;;
esac

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

#if [ -f ~/.bash_aliases ]; then
# . ~/.bash_aliases
#fi

# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
fi

# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
 
Old 09-24-2006, 10:09 AM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
Originally Posted by lcaley
where would i put it? my .bashrc file looks like this:
Just add it at the end. .bashrc is read when you login via terminal and sets up a convenient environment for you.

Tux,
 
Old 09-24-2006, 10:09 AM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Anywhere in it will do.

Brian1
 
Old 09-24-2006, 10:18 AM   #6
lcaley
Member
 
Registered: Sep 2006
Distribution: openSUSE 10.2
Posts: 50

Original Poster
Rep: Reputation: 15
ok, i added this line to the end of my .bashrc and restarted the terminal, and it still isnt working. Any more suggestions?


export PATH=$PATH:/tmp/binutils-2.14/ld
 
Old 09-24-2006, 10:44 AM   #7
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
try find / -name 'ld'. You may have the path wrong and that is why it is not working.
 
Old 09-24-2006, 10:48 AM   #8
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
Did you install the binutils by "apt-get install binutils"?
You can find your ld program with "find / -name ld" mine is in "/usr/bin"

You should add folders to PATH instead of files.
 
Old 09-24-2006, 11:11 AM   #9
lcaley
Member
 
Registered: Sep 2006
Distribution: openSUSE 10.2
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Zmyrgel
Did you install the binutils by "apt-get install binutils"?

Thats what i was doing wrong. Thanks!





I probably should make a new thread for this, but now its giving me an error saying:


ERROR: You appear to be running an X server; please exit X before
installing. For further details, please see the section INSTALLING
THE NVIDIA DRIVER in the README available on the Linux driver
download page at www.nvidia.com.


I have no idea what that means. Anyone know what I should do next?

Thanks to everyone who is trying to help me.. I'm totally lost here

Last edited by lcaley; 09-24-2006 at 11:17 AM.
 
Old 09-24-2006, 11:13 AM   #10
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Sure in order to install the nvidia driver you have to make sure your x server is not active. What runlevel is in your /etc/inittab file?
 
Old 09-24-2006, 11:20 AM   #11
lcaley
Member
 
Registered: Sep 2006
Distribution: openSUSE 10.2
Posts: 50

Original Poster
Rep: Reputation: 15
# The default runlevel.
id:2:initdefault:


I think thats what you were asking me. I honstly know NOTHING about linux lol
 
Old 09-24-2006, 11:25 AM   #12
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Yeah that is what I was wandering. If you go to /etc/rc2.d or /etc/rc.d/rc2 you will see a file that says S99GDM if you change that to s99GDM and reboot it will keep the x server from starting. Then type sh <nivida_installer> This will start and install the nvidia driver into your kernel. then before you reboot again go back and change the s99GDM back to S99GDM. That should get the nvidia module installed.
 
Old 09-24-2006, 11:32 AM   #13
lcaley
Member
 
Registered: Sep 2006
Distribution: openSUSE 10.2
Posts: 50

Original Poster
Rep: Reputation: 15
ok, this is what i have in my rc2.d, which one should i change? theres not a S99GDM


S05vbesave
S10acpid
S10powernowd.early
S10sysklogd
S11klogd
S13gdm
S14ppp
S18hplip
S19cupsys
S20apmd
S20dbus
S20festival
S20hotkey-setup
S20laptop-mode
S20makedev
S20nvidia-kernel
S20powernowd
S20rsync
S25bluez-utils
S25mdadm
S89anacron
S89atd
S89cron
S98usplash
S99acpi-support
S99rc.local
S99rmnologin
S99stop-readahead
 
Old 09-24-2006, 11:33 AM   #14
lcaley
Member
 
Registered: Sep 2006
Distribution: openSUSE 10.2
Posts: 50

Original Poster
Rep: Reputation: 15
i just noticed that there is a S13gdm though, should i change that one?
 
Old 09-24-2006, 11:41 AM   #15
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
You can Try but I am not sure. When I used ubuntu it was always S99GDM. but give it a try. I do recommend that you backup all your data just in case it has an undesirable result.
 
  


Reply



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
Find file/dir path nc3b Programming 5 08-28-2006 04:49 AM
howto add a dir to the path? vegetassj2 Linux - Newbie 11 08-16-2006 02:02 PM
Changing home dir path? NonSumPisces Linux - Newbie 4 08-22-2004 04:16 PM
adding a dir to PATH for root Villain Linux - Newbie 3 06-20-2004 03:49 PM
Adding a dir to PKG_CONFIG_PATH bhodi Linux - Newbie 1 11-19-2003 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:27 PM.

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
Open Source Consulting | Domain Registration