How do I add /usr/local/bin to path

Hi.
I have installed arch linux on a server.
It seems really very good - manged to install latest snort-inline easily...
However (and this is really a completely NOOB question)
- how do I add /usr/local/bin to the default (root) path ?
I have tried to add
PATH=/usr/local/bin
to /etc/enviornment
But it did not show up when using the - env command (after re-logging in)
I know that I could sym link to /usr/bin but i would like to know.
Any help would be good
Cheers
Last edited by yossarianuk (2008-10-02 10:31:21)

There's a place for all three of /usr/bin, /usr/local/bin, and ~/bin --- even on Arch.
If you download package whizbang-1.2.3 from some non-Arch site, its installer will often by default try to install its files into the /usr/local hierarchy. When making a PKGBUILD, you want to tell it instead to install into $pkgdir/usr, so that when you install the resulting pkg file with pacman, it goes into the /usr hierarchy. That's what the wiki page is saying: pacman-managed stuff goes into the /usr hierarchy.
/usr/local/* is for files you want to install systemwide without making a PKGBUILD. Your own scripts are a great example. Also you might want to install some compiled files that way, if making a PKGBUILD isn't worth it or you don't have the time to write (*and maintain!*) one.
~/bin is for scripts (could be compiled files too) that you want to only be available to that specific user.

Similar Messages

  • How to put g95 in usr/local/bin?

    Hi all,
    I am trying to compile a program called elmerice.  When I type the "make compile" command, I get the following message:
    elmerf90-nosh -c Solvers/AIFlowSolve_nlD2.f90 -o Solvers/AIFlowSolve_nlD2.o
    /usr/local/bin/g95 -O5 -ffast-math -ftree-vectorize -march=nocona -fprefetch-loop-arrays -fomit-frame-pointer -fstrict-aliasing -momit-leaf-frame-pointer -falign-loops -I. -Ibinio -I/Applications/ElmerGUI.app/Contents//share/elmersolver/include -c Solvers/AIFlowSolve_nlD2.f90 -o Solvers/AIFlowSolve_nlD2.o
    /Applications/ElmerGUI.app/Contents/bin/elmerf90-nosh: line 18: /usr/local/bin/g95: No such file or directory
    I did install (I think successfully) g95 using macports, i.e. the command "sudo port install g95" but apparently it is not in /usr/local/bin, which seems to be where elmerice wants to find it.
    One complicating factor might be that /usr/local/bin does have gfortran it.
    It seems like elmerice will only use g95.  Can I put g95 in the /usr/local/bin directory from wherever I have it now, and if so, how?  Or can I just reinstall g95 in that directory?
    Thanks,

    Try creating a symbolic link from /usr/local/bin/g95 to wherever MacPorts put it. That is probably the easiest solution. Ideally, you would fix the makefile, but that wouldn't be easy.

  • How do I change permisson to write on /usr/local/bin??

    Hi
    I'm installing a software by source (PKG-CONFIG) as needed by bluefish, however which I was doing " Make install" the terminal told me that it can't write on /usr/local/bin/pkg-config......so how do I change the permission so that I can start installing??
    Thanks
    Chris

    Precede the install command with "sudo" and use your password (provided you are an admin). Then the insatller will have permission to write as if you are the "root" user.
    eg:
    $ sudo install
    will run "install" as if run by root - who does have permission to write to the dir.
    MacBook (BootCamp), various Macs and servers   Mac OS X (10.4.7)  

  • How to change /usr/bin/grep To /usr/local/bin/grep

    Hi
    I have installed GNU Grep but when I am giving the command #which grep it is showing me solaris grep i.e /usr/bin/grep.
    My question is how do I change it to /usr/local/bin/
    Thanks in advance
    Sukrut

    You have a few options:
    1) place /usr/local/bin before /usr/bin in your PATH environment variable
    2) remove /usr/bin/grep altogether
    3) move /usr/bin/grep to something else (ie: /usr/bin/solaris/grep) and symlink /usr/bin/grep to /usr/local/bin/grep just in case any hard coded programs/scripts rely on /usr/bin/grep being present.
    I prefer step #3 since most of the various gnu utilities are virtually 100% drop-in replacements.

  • How do I delete Unix scripts in /usr/local/bin/

    Well, I download a program call mpgtx (mpeg editor). After install, it put all its files to /usr/local/bin/, and there are unix scripts, mpgdemux, mpgcat..etc. So I just wander how I can delete them. Can just do rm mpg* from Terminal?
    Pls, help.

    I don't even HAVE a /usr/local/bin folder on either of my Leopard installs. One install does have a /usr/local folder, but everything in it was installed by the latest version of Privoxy, the other install doesn't have a /usr/local folder at all. So you won't mess up anything from the system. Whether you'll mess up some third party something or other you have installed only you can know. I suspect they probably don't take up much room, you could check that. If the amount of space consumed is trivial, you could just leave them.
    Francine
    Francine
    Schwieder

  • /usr/local/bin

    Hello everyone,
    Whenever i am installing any s/w from source by compiling,its executable is getting stored in /usr/local/bin.Now im unable to use the s/w by just typing its executable name in the terminal,its giving me an error as "command not found".what i have to do is browse to the directory /usr/local/bin n then run the executable as ./xxxxx.How can i add the directory /usr/local/bin so that it too is checked for executables.
    Thanks in advance,
    Rajiv Nair.

    Anyway, /usr/local is made just for those things you do not want to be touched by your package manager. So, if for any reason you do not want to write a PKGBUILD for something (if e.g., it is just a little script you wrote and you want to install it system-wide; or you have some reasons to make the compilation routine step by step), then /usr/local is then just the right place: /usr/local/bin and /usr/local/sbin for executable with various permissions, /usr/local/lib for the libraries, may be /usr/local/src for the sources, etc. Then you should just modify your /etc/profile (or your .bashrc, .zshrc).
    This is not what is supported by arch, but it is something you can always do, if you like so, in any linux system of the world.

  • Explanation of usr/local/bin

    I have see this path come up when I have installed PHP/MySQL etc on my machine but neve rundersttod what it means.
    Is this the directory where programmes are installed by me that are not part of the OS, like Photoshop, PHP, MySQL, MS word etc?
    How do I look for files on my Finder are they stored on my HD or in my user profile?

    Andy,
    To add to Michael and j.v.'s posts, /usr/local has been the traditional place to install 3rd party software ie. software not written by the company that made the OS. So, /usr/local/bin contained binary files, /usr/local/lib contained the library files, /usr/local/man contained the man pages, and so forth. If you look on old Sun's, IBM, HP and other machines dating to the early 90's, that's generally what you'll see. Not all system administrators, or workstation owners, followed the general design intentions of the UNIX file system however.
    Now, binaries, libraries and man pages can be in a wide variety of places, depending upon the package installer's design. Fink will like to default to /sw, for example.
    As for freeware, or shareware, a well-designed config file will allow you to specify paths for bin, lib and man directories. So, with a little planning, you can get MySQL, and other open source freeware, to install in a directory layout of your design.
    I've always thought of "usr" to mean "User", as in the end User, versus the OS system itself. So /bin and /sbin were for binaries that were primarily used/called by other system routines, while /usr/bin and /usr/local/bin would contain binaries that User's may call/use. Doesn't mean you can't use stuff in /bin, nor that system administration stuff can't be in /usr/bin. I think of it only as a general guide to understanding why something is in a particular directory, not a hard and fast rule.
    Good general references on the overall design of UNIX are "The Design of the UNIX Operating System" by Maurice Bach, and "The Design and Implementation of the FreeBSD Operating System" by Marshall McKusick and George Neville-Neil.
    Ed
    PB G4 Mac OS X (10.2.x)

  • /usr/local/bin/pdf2ps: gs: not found

    GS 8.54
    Solaris 10
    Oracle 11.5.10.2
    I'm having problem regarding the pdf2ps which it seem cannot find the pdf2ps. When i try to print the pdf file in apps using pasta.
    The printer confirm support pasta and post script.
    The report submited is complete with warning. This is the error inside the log file.
    /usr/local/bin/pdf2ps: gs: not found
    Pasta: Error: Preprocess failed. Command=/usr/local/bin/pdf2ps /v99/app/applmgr/abghfuat/applcsf/out/ABGHFUAT_e2sscorhrmdba02/ABG_APXPBFOR_XML_BMO_2495102_1.PDF /v30/app/applmgr/abghfuat/comn/temp/pasta18270_0.tmp
    Pasta: Error: Preprocess or Print command failed!!!
    APP-FND-00500: AFPPRN received a return code of failure from routine FDUPRN. An error occurred while AOL tried to spawn the print process
    Cause: AFPPRN received a return code of failure from the OSD routine FDUPRN. An error occurred while AOL tried to spawn the print process.
    .pdf file being generated, but failing when calling Pasta.

    Hi,
    Since you indicate a version number for ghostscript in your post (8.54), I'm guessing the issue is that gs is not in the path for the applmgr user. On my system (Linux, not Solaris, so there may be differences), gs and pdf2ps are in different directories.
    Try running the following command as the applmgr user:
    which gsIf you don't get the path to gs as output from that command, you will need to add the path to gs to the path environment variable of the applmgr user.
    Regards,
    John P.

  • Usr/local/bin...or where?

    hey guys,
    I just made a package of sylpheed claws 2.00.  Everything went ok, but the binary was placed in /usr/local/bin.  For reasons I don't quite understand, this is not an arch-like place to be.  So where should I put it, and how should I modify my pkgbuild to put it there?
    btw, here's the fairly plain pkgbuild;
    pkgname=sylpheed-claws
    pkgver=2.0.0
    pkgrel=1
    pkgdesc="The stable extended version of sylpheed"
    url="http://claws.sylpheed.org/"
    licence=""
    depends=(pkgconfig libetpan)
    makedepends=()
    conflicts=()
    replaces=()
    backup=()
    install=
    source=(http://internap.dl.sourceforge.net/sourceforge/sylpheed-claws/$pkgname-$pkgver.tar.gz)
    md5sums=('7ddfc626484ae0954a78c5233931e21a')
    build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --with-gtk2
    make || return 1
    make DESTDIR=$startdir/pkg install
    also, what forum should I have posted this to?
    thanks!

    Well ... it CAN be set to anywhere you like, but compliance with the Arch Packaging Standards would be preferable - or mandatory, if you want to submit your PKGBUILD to the AUR. A quick read of the AUR User Guidelines would also be useful in that case.
    General hints -
    ./configure --help
    will give you all the options for most apps. The ABS wiki pages provide the Arch-specific stuff.

  • Question about /usr/local/bin in Mavericks ...

    I just did a clean install of Mavericks on a 2010 MacPro. I understand Mavericks does not replicate this path (/usr/local/bin) when doing a clean install. Prior to this I was running 10.7.xx and I had a few compiled binaries installed in the bin folder. How do I address this? Can I simply recreate the path manually without risk?
    Thanks.
    -paul.

    etresoft The 905
    Re: Question about /usr/local/bin in Mavericks ... 
    Jan 15, 2014 9:30 AM (in response to Paul Figgiani)
    So why would you expect /usr/local/bin to be there? If you install custom, low-level software like this on one system, it will not get migrated to the new system.
    As I stated in my original post I did not expect it to be there. All I'm asking is how do I adreess the issue? Do I recreate it manually without any risk of screwing something up?

  • How do I add Chinese local after Solaris OS has been installed

    How do I add Chinese local after Solaris OS has been installed. right now on my
    /usr/lib/localedef/src I only have iso_8859_1
    Thank you

    Welcome to the Apple Support Communities
    1. To boot into Mac OS X, press X key while your computer is starting.
    2. Install Boot Camp drivers

  • My /usr/local/bin is empty.

    Hi,
    My /usr/local/bin is empty.
    Before that I have tried to install newer version of python and the installation got stuck and the computer was rebooted
    and a blue screen is appreard.
    I did re- install OSX and it solved the blue screen issue but the folder still was empty.
    Later I did upgrading to mountain lion but the folder is still empty!
    What could be the reason?
    How can I restore it?
    Thanks,
    Nimrod

    If the applications are still working, they weren't installed there! If not, you will either need to re-populate that directory from your backup, or re-install the applications.

  • /usr/local/bin OR /opt/local/bin

    I recently installed osxvnc and the install program put it into /opt/local/bin. I already had /usr/local/bin etc.
    Is there a standard way of doing this - that is using /opt/local or /usr/local or is opt for optional programs and /usr/local for locally developed programs?
    TIA

    Fink uses /sw and darwinports uses /opt/local specifically so that what you have in /usr/local doesn't interfere with fink, or with darwinports, and that their installs don't interfere with what you install manually into /usr/local.
    Use /usr/local for software you compile by hand that installs in there by default. Keep fink and darwinports separate from this, and separate from each other. The best way to do this is to leave everything as it is.
    If you want to, you can configure fink (and I assume darwinports) to install everything into /usr/local. Again, I suggest you not do it for the same reasons as just given. More details of how and why this was done are available on the fink and on the darwinports documentation sites.

  • Not able to see make in /usr/local/bin even after installing the package

    Hi,
    I have installed the package make-3.8 for solaris 9 on my machine with sun os 5.9. But still I can not see 'make' in /usr/local/bin .
    Does anyone have an idea why?
    I installed the same as root using the command:
    pkdadd -d <packagename>
    But it gives me quite many warnings like :
    WARNING : /usr/local/bin/make <not present on Read only file system>
    WARNING : /usr/local/bin/doc/make/ABOUT-NLS <not present on Read only file system>
    At the end it says Installation of SMCmake was successful
    Still I can't see make in /usr/local/bin.
    Regards
    Manmeet

    Seems like /usr/local is mounted read-only? Run
    mount | grep local
    or
    touch /usr/local/test
    and see if you can write files in the directory.
    /M.

  • /usr/local/bin vs /usr/bin and Kazehakase vs Firefox

    When you install an application to /usr/bin  will it be more faster than installed on /usr/local/bin?
    I have Firefox installed in /usr/bin and Kazehakase installed to /usr/local/bin. And it seems that Firefox is faster than Kazehakase. Why?
    Last edited by Paingiver (2008-03-15 11:11:48)

    dyscoria wrote:
    Endperform wrote:The notion that an application can be sped up by linking it in your home directory, or even renaming it to one letter is also crazy.  Your install will search for an executable in the path specified in $PATH and then execute the first instance it finds, but this does NOT speed the application itself up.
    No seriously, if you rename all your executables to one letter then your system runs like lightning!
    * am i really that bad at sarcasm? *
    Yes, since there was no indication of sarcasm in your post.  A or would have worked

Maybe you are looking for

  • Cannot run form twice in 10g form builder

    i cannot run the form twice in 10g developer suite it will show the source code in html as below <html> <head> ORACLE FORMS.</head> <body onload="document.pform.submit();" > <form name="pform" action="http://salmana.asry.com:8891/forms90/f90servlet"

  • Safenet 8.2 fails to install

    Has anyone been able to install Safenet 8.2 after upgrading to ML? Fails everytime for me and I subsequently cant use Cisco AnyConnect 3.0 to VPN. ML broke Safenet 8.1.0.5 and now I cannot VPN.

  • Goolge Toolbar Buttons are Gone After Installing FF 4

    After getting the new FireFox version 4 I see no Google buttons anymore even tho the Google Toolbar is active. It is installed and ticked and there is even a row but it's blank. When I click View ->Toolbars and untick the Google toolar the extra spac

  • Oracle Rac - Targetting clients to particular nodes?

    We have a deployment case that wanted to find out best practices. Currently there is a two node RAC setup. We have an application that on one side -- is a high write, minor read component -- and another side which is mostly read and minor write. Each

  • Skype 7.0.0.102 version not working on Windows 7

    We all use Skype in the office for sending instant messages to each other. One of my colleagues which uses Windows 7 has an issue with Skype where it has stopped working,  I have checked the error log and it is showing this: Description:Faulting appl