LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 02-11-2009, 10:45 PM   #1
sulekha
Member
 
Registered: Dec 2004
Location: India
Distribution: ubuntu 10.04 , centos 5.5 , Debian lenny, Freenas
Posts: 324

Rep: Reputation: 36
Question /usr/local/bin


Hi all,

how valid s the following claim that,

if you want the script to be executable by others, you could use /usr/local/bin or another system as a convenient location for adding new programs , which i have read in the book "Beginning Linux Programming" by Neil Mathews
 
Old 02-11-2009, 11:58 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, with Mandriva /usr/local/bin is where user installed packages from source

binaries are installed to.

Like if i want the latest perl, qt4, python, etc

that are not available from my normal repo

Then the make program installs them here.

The linker (ld) sets up the appropriate links so if I call the program

/usr/local/bin is checked as well as the /usr/bin.

You can do it manually, by creating links from

/usr/local/bin to /usr/bin

There is probably a neater way of doing this, but generally the make install program does it automagically.

Cheers, Glenn
 
Old 02-13-2009, 10:55 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,902

Rep: Reputation: 775Reputation: 775Reputation: 775Reputation: 775Reputation: 775Reputation: 775Reputation: 775
Dear sulekha

you have been writing these 'I have read this in a book, is it true' posts for a long time now. At this point, I would like to know what you have tried (did you try it? I am sure you could if you wanted to) and what you think about it. Why do you doubt it? Or do you just want us to go through fact checking every linux book you can find?
 
Old 02-13-2009, 03:29 PM   #4
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
Run "echo $PATH" in a terminal and you'll see all the folders that will be checked for executables. I run Ubuntu and place my scripts in /usr/local/bin.
 
Old 02-13-2009, 09:45 PM   #5
sulekha
Member
 
Registered: Dec 2004
Location: India
Distribution: ubuntu 10.04 , centos 5.5 , Debian lenny, Freenas
Posts: 324

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by salasi View Post
Dear sulekha

you have been writing these 'I have read this in a book, is it true' posts for a long time now. At this point, I would like to know what you have tried (did you try it? I am sure you could if you wanted to) and what you think about it. Why do you doubt it? Or do you just want us to go through fact checking every linux book you can find?
okay i will take that line of action from now onwards, i will first try
to the maximum, even then if i am not getting i will post.
 
Old 02-14-2009, 07:51 AM   #6
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,902

Rep: Reputation: 775Reputation: 775Reputation: 775Reputation: 775Reputation: 775Reputation: 775Reputation: 775
Just to be clear; what I would like to see is some evidence that you have thought about yourself before starting a thread. So, if you say 'I have thought about his, and I think the author has overlooked x' or 'I tried this (with example), and it didn't work, here are the error messages', I think that is completely fair.

Or even, 'I understand how you would do this stage, but the subsequent stage is beyond me' is fair, too.

Even if something is completely beyond you, please try to explain which part you don't understand, if that is possible.

But just quoting something without any evidence of thinking or trying on your part is too much like a bad homework question. I know in your case from observing the many posts that you have submitted that this isn't exactly homework, but it would share some of the characteristics that make answering homework questions a bad thing.
 
  


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
Subversion : /usr/local/bin/svnserve.bin lord-fu *BSD 2 12-17-2006 10:46 AM
making files available in /usr/local/bin and /usr/sbin reakinator Linux - Newbie 1 10-14-2006 05:09 PM
Error when starting up snort: bash:!/bin/sh/usr/local/bin/snort :Eent not found cynthia_thomas Linux - Software 1 11-11-2005 02:59 PM
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 08:30 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM


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

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