[RESOLVED] Can't detect symlink in /usr/local/bin

The directory is in the path:
echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl
So I don't understand why I'm not able to run a symlink in /usr/local/bin.
Any ideas as to why?
Last edited by Goran (2012-10-17 23:24:12)

drcouzelis wrote:There's a good chance whatever it links to doesn't exist (bad link), isn't executable, or isn't accessable by your user.
Even dumber: "ln -s /usr/bin/myprogram\ -someoption linkname". I didn't realize that this is actually a link to a program named "myprogram -someoption".
... boy do I feel stupid.
Thanks for your help.

Similar Messages

  • What about /usr/local/bin + sbin merge?

    With the merge of /bin and /lib folders that just happened I was curious if there was a particular reason to keep both /usr/local/bin and /usr/local/sbin as actual folders in the filesystem, instead of making /usr/local/sbin a symlink to /usr/local/bin.

    arojas wrote:If you delete it, it will be recreated with every update of the filesystem package anyway
    This.
    Jindur wrote:So I guess that folder is actually not under my complete control
    The contents is*, pacman (actually, the filesystem package) just creates it for you since 99.9% of people either need it or don't care.
    If it bothers you that much, you can use ABS to build your own "filesystem" package without any /usr/local/ paths
    * Should be according to the Arch Packaging Standards unless someone writes a bad PKGBUILD which incidentally I found one of mine doing that yesterday... Accidents happen!
    Last edited by fukawi2 (2013-06-04 23:07:23)

  • 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

    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.

  • 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.

  • /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

  • 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.

  • 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.

  • Simple script in /usr/local/bin just won't start - SOLVED

    I put this really simple script for starting psi into my /usr/local/bin, set it a+xr and added /usr/local/bin to my path. However, I just can't start the damn thing.
    Here's the script itself (I really don't think there's something wrong with it, since if I type it in the shell it works fine):
    #!/bin/zsh/
    #start psi, never stop
    while true;
    do psi;
    done
    Here's my users $PATH:
    ─$ print $PATH
    /bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/usr/local/bin:/opt/kde/bin:/opt/mozilla/bin:/opt/qt/bin
    Here's the permissions of the script:
    $ ls -lah /usr/local/bin
    total 4.0K
    drwxr-xr-x 2 root root 80 Dec 15 03:52 ./
    drwxr-xr-x 10 root root 240 Dec 10 18:55 ../
    -rwxrwxr-x 1 kamagurka users 60 Dec 15 03:51 psi.start*
    And here's what happens when I try to execute it:
    $ psi.start
    zsh: command not found: psi.start
    So, I'm either missing something incredibly obvious, or something freaky's going on here. I hope it's the former.
    EDIT: I had no idea where to put this, so I put it into Desktop Env since I'm trying to start a graphical app, but feel free to move it.
    EDIT: Yea, I was being a little dense.

    smoon wrote:Not sure if that's the problem, but try removing the trailing / (slash) from your script's shebang.
    See, something really obvious. Stupid, even. You can see, I don't do a lot of scripting.

  • 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?

  • $PATH missing '/usr/local/bin'

    $PATH missing '/usr/local/bin' in /etc/login.defs and /etc/profile.
    I only noticed, being somewhat a noob, after compiling the NEW Dillo 0.7.3 and finding that it places its' executable in /usr/local/bin (!).  This, not being in my $PATH by default.
    Please consider adding this line to future ARCH 0.6 or beyond for WORKSTATION users:
    # /etc/profile
    export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/bin"
    Thanx.

    Mt.Tam-Luxer wrote:I only noticed, being somewhat a noob, after compiling the NEW Dillo 0.7.3
    A very wise decision to use this great browser :-) ... and I'm even serious about that.
    Mt.Tam-Luxer wrote:and finding that it places its' executable in /usr/local/bin (!).  This, not being in my $PATH by default.
    For some reason it is in my /etc/profile ... but I don't remember if I put it there or not.
    Firstly, (and as already mentioned more or less) I can see arguments why AL does not include /usr/local/bin by default (mainly because there is nothing there when only installing AL packages).
    But OTOH, this is the beauty of AL : you can (and are even supposed to) configure your system as you like by editing the files in /etc. I guess that's why I don't remember, because the first thing I would do if need be is editing /etc/profile ;-) ...
    Oh, but something (very general !) to consider : if you want to keep your system "Unix-style", don't put every posible PATH in /etc/profile, but put it in ~/.profile (or whatever shell you are using). If you are the only user, it does not really matter. But in a "true multi-user Unix system" you should not have /funky/path/bin in /etc/ ... not that /usr/local is exotic ....this is more of a general note.
    sarah31 wrote:but imho if there is a PKGBUILD for a desired app (such as dillo)
    yes, the PKGBUILD for dillo works fine, however, last week they released the latest version 0.7.3 which Mt.Tam-Luxer tried to install ( ... hint ... hint ... package maintainers ... :-) ... ). It was not quite clear from your post if yo wanted him to modify the PKGBUILD script or to just use it.
    Oh, and besides changing pkgver, the source should now point to http://www.dillo.org/download/dillo-0.7.3.tar.bz2

  • `make install` copies to /usr/local/bin

    And /usr/local/bin is apparently not on the default arch $PATH.
    This is odd becauase /usr/local/bin is the $bindir apparently for make by default.

    echo 'export PATH="${PATH}:/usr/local/bin:/usr/local/sbin"' > /etc/profile.d/local-bin.sh && chmod a+x /etc/profile.d/local-bin.sh
    But you really should use a PKGBUILD instead of make install so pacman can keep track of your packages in the system.

  • OK to create /usr/local/bin?

    Hi,
    I tried today to install the command line utility for Growl, growlnotify. The installer script failed because it tried to install into /usr/local/bin which isn't there currently.
    Now, is it OK to just go ahead and run "mkdir /usr/local/bin" to create the directory? I am not very experienced with Unix so I usually don't touch the unix directories so that I don't mess up anything...
    Thanks!
    Ingo

    If you are the only or primary user of your computer, and you want to mess around, /usr/local is as good a place as any, since most software installs in it by default. Another option is to do stuff in your home directory.
    If you have a dumb installer or Makefile that tries to install and possibly over-write files in say /usr/bin, you would be tipped off by install permission failure, whereas if you issued "sudo make install" you are at the mercy of whomever wrote the Makefile.
    I actually build stuff in my home directory and install it into root-owned /usr/local, and the first time I issue "make -i install" I do it without write permissions and I can watch where it tries to put stuff. That is excessively paranoid. But its when you stop being paranoid.
    Anyway, it doesn't much matter. For security reasons on a multiuser system, it is best to have multi-user accessed executables in root-owned directories.

  • 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.

Maybe you are looking for

  • Addon Installer exception

    hey i am still a rooky in sbo and SAp in general. i am creating the addon:blanket agreement that i find in the SDK help center well the module blanket is running correctly. but when i create the addon installer and try to run t  get the exception(fro

  • How to pass process flow input parameter to unix script external process

    Hi, I'm trying to pass a process flow input paramter (string) to an external process which is a unix script. I've been working on this for the last 2 days but can't get it to work. Here is the design. I have a process flow with 3 maps that create a f

  • Html in JEditorPane

    Hello again! I am in the following situation. I have succeeded in loading an HTML document in a JEditorPane component. My question is can I recognize somehow if a click is performed on an image of the html document or on the text of the html document

  • Database Designer App

    Hi, I need to make a database designer type application.  Where there are floating list boxes that can be moved around.  Each of the list boxes will represent a tables and you can drag relationships between the list boxes which will create a line map

  • Using php to connect to Oracle Database 11g Release 2 Enterprise Edition EE

    Greetings everyone! Please i dont know how to connect to Oracle Database 11g Release 2 Enterprise Edition with php even though i connected with php successfully with Oracle Database 11g Express Edition with the php code below. can someone help please