The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 No linking after I have installed something from the ports..
Author: dg 
Date:   18-02-01 19:13

Hi there again,

When I have installed something off the ports, lets say cvsup, i try just to use the command 'cvsup' and it says command not found so I just do /usr/local/bin/cvsup -whatever..
But when i reboot the system responds to the command to 'cvsup' and I dont have to use the long file path, is there a way to update some sort of database that controls this, I dont really want to be rebooting after everything I have installed.

Thanks alot..

dg

Reply To This Message
 
 Re: No linking after I have installed something from the ports..
Author: dodobird 
Date:   18-02-01 20:07

Just put the path into your PATH environment variable.

Reply To This Message
 
 Re: No linking after I have installed something from the ports..
Author: dg 
Date:   18-02-01 21:54

er.. that doesnt really help =\
i've just started off with freebsd so you might need to add some detail to that.
isnt there a command that just updates the damn thing ?

Reply To This Message
 
 Re: No linking after I have installed something from the ports..
Author: Dan Langille 
Date:   19-02-01 02:06

it depends on what shell you are using.

Here's my ~/.bash_profile:

# more ~/.bash_profile
# $Id: dot.profile,v 1.7.2.5 1998/06/30 14:38:05 kuriyama Exp $
#
# .profile - Bourne Shell startup script for login shells
#
# see also sh(1), environ(7).
#

# remove /usr/games or /usr/X11R6/bin if you want
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/bin:/usr /X11R6/bin:$HOME/bin; export PATH

# Setting TERM is normally done through /etc/ttys. Do only override
# if you're sure that you'll never log in via telnet or xterm or a
# serial line.
# Use cons25l1 for iso-* fonts
# TERM=cons25; export TERM

BLOCKSIZE=K; export BLOCKSIZE
EDITOR=ee; export EDITOR
PAGER=more; export PAGER

# make mail(1) happy:
crt=24; export crt

# set ENV to a file invoked each time sh is started for interactive use.
ENV=$HOME/.shrc; export ENV

# set prompt: ``username@hostname/directory $ ''
PS1="[\u@\h:\w] "
case `id -u` in
0) PS1="${PS1}# ";;
*) PS1="${PS1}$ ";;
esac

[ -x /usr/games/fortune ] && /usr/games/fortune

Reply To This Message
 
 Re: No linking after I have installed something from the ports..
Author: dg 
Date:   19-02-01 16:55

Thanks alot Dan for the help!
worked out in the end it was the shell I was using, it was set to the default, csh or something, but now its on bash and everything is fine *phew*
thanks for the help again, you guys are great.

dg

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org