DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th May 2008
Sunsawe Sunsawe is offline
Port Guard
 
Join Date: May 2008
Posts: 39
Thanked 0 Times in 0 Posts
Question how to access freshly installed ports?

Hi,

So far, to access a new port that i just installed, i exited the session then logged again... (I know... shame on me...)

But today, i decided that i should do things the right way and... am asking for it.

How to access the new software by its name ( my_software) without specifying the whole path (/usr/bin/my_software), when it has just been installed (by portinstall) ?

Thank you
Reply With Quote
  #2   (View Single Post)  
Old 27th May 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,074
Thanked 198 Times in 156 Posts
Default

If you are using tcsh: % rehash
You can also restart the shell with: % exec tcshThis will work for any shell (bash, zsh, etc)
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 27th May 2008
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

You have to update your directory hash tables. In csh, type "rehash" and then you are done. That assumes the installed port is in /usr/local/bin (as usual) and that this location is in your search path.
Reply With Quote
  #4   (View Single Post)  
Old 28th May 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Thanked 40 Times in 39 Posts
Default

Just to note that this is only an issue if using the C-family of shells (tcsh, like root does by default). Bourne shells (sh (the default shell for regular users) or bash) do not require a rehash to find new executables.
Your question indicates that you are using root for things other than configuring your system, which is naughty!
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
  #5   (View Single Post)  
Old 28th May 2008
Sunsawe Sunsawe is offline
Port Guard
 
Join Date: May 2008
Posts: 39
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by robbak View Post
Your question indicates that you are using root for things other than configuring your system, which is naughty!
Yes but... no! Am not that a bad guy. This is useful for me only at the beginning, after a fresh installation of the system. I need to install the basic port that am using (like portupgrade itself, then screen, bash and so on). I was then force to exit the session after portupgrade's installation then again after screen's installation to finally be able to continue.

thank you all for your replies.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pre-installed Groups: What are they for? Greg_Morgan OpenBSD General 5 11th October 2009 01:05 AM
Installed 4.3 & No GUI warriors OpenBSD General 24 14th August 2008 11:28 AM
n00b question, installed theme via ports. How to use it? disappearedng FreeBSD General 1 25th June 2008 07:26 PM
Has anyone installed mod_perl erehwon OpenBSD Packages and Ports 5 23rd June 2008 08:11 PM
Command to list all installed ports? windependence FreeBSD Ports and Packages 2 13th May 2008 11:10 AM


All times are GMT. The time now is 03:48 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick