/usr/local missing

On my macbook, the folder /local doesn't seem to be there. Yesterday I did a fresh install of OS X, and now /usr/local is not there. I need it to create part of a toolchain for a project, so anyone know where it went, or if I could just create a directory called local?

Hi Kabren,
   I think the installer used to create such empty directories but maybe it doesn't now. Since they are empty, you can make them yourself. However, I would think that most of the installers that use that install root by default will create the directories for you. If you have an app that doesn't or just want to create the directories yourself, you could do it with a command like:
sudo mkdir /usr/local /usr/local/bin /usr/local/etc /usr/local/include /usr/local/info /usr/local/lib /usr/local/man /usr/local/sbin /usr/local/share /usr/local/share/man
Gary
~~~~
   I saw a subliminal advertising executive, but only for a
   second.
         -- Steven Wright

Similar Messages

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

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

  • Posix_spawn("/usr/local/sbin/dnsupdate", ...): No such file or directory

    Hello,
    This errors are repeting again and again :
    27/07/13 15:52:57
    com.apple.launchd[1]
    (org.dnsupdate.daemon[36847]) posix_spawn("/usr/local/sbin/dnsupdate", ...): No such file or directory
    27/07/13 15:52:57
    com.apple.launchd[1]
    (org.dnsupdate.daemon[36847]) Exited with exit code: 1
    27/07/13 15:52:57
    com.apple.launchd[1]
    (org.dnsupdate.daemon) Throttling respawn: Will start in 10 seconds
    27/07/13 15:53:07
    com.apple.launchd[1]
    (org.dnsupdate.daemon[36917]) posix_spawn("/usr/local/sbin/dnsupdate", ...): No such file or directory
    27/07/13 15:53:07
    com.apple.launchd[1]
    (org.dnsupdate.daemon[36917]) Exited with exit code: 1
    27/07/13 15:53:07
    com.apple.launchd[1]
    (org.dnsupdate.daemon) Throttling respawn: Will start in 10 seconds
    27/07/13 15:53:17
    com.apple.launchd[1]
    (org.dnsupdate.daemon[36964]) posix_spawn("/usr/local/sbin/dnsupdate", ...): No such file or directory
    27/07/13 15:53:17
    com.apple.launchd[1]
    (org.dnsupdate.daemon[36964]) Exited with exit code: 1
    27/07/13 15:53:17
    com.apple.launchd[1]
    (org.dnsupdate.daemon) Throttling respawn: Will start in 10 seconds
    27/07/13 15:53:27
    com.apple.launchd[1]
    (org.dnsupdate.daemon[37034]) posix_spawn("/usr/local/sbin/dnsupdate", ...): No such file or directory
    27/07/13 15:53:27
    com.apple.launchd[1]
    (org.dnsupdate.daemon[37034]) Exited with exit code: 1
    27/07/13 15:53:27
    com.apple.launchd[1]
    (org.dnsupdate.daemon) Throttling respawn: Will start in 10 seconds
    Cordialy!

    The /user/local directory is site-specific and usually locally-installed stuff; software and tools and libraries that have been installed into the Unix environment.  That directory doesn't usually have any OS X files in it, unless somebody copied something there.
    In this case, some software expects a DNS update tool to exist in the /usr/local directory, and it's not there or not there anymore, and some other piece(s) are trying to start the operation via launchd, and failing.
    The source of the tool looks to be www.dnsupdate.org, though that site is offline right now.
    Do you want or need help putting the dnsupdate stuff back, or possibly removing the launchd widget that's trying to activate the (missing) tool?

  • Unable to find /usr/local/jre/bin/jre

    Many people have reported this problem but I've yet to see an answer other than 'make sure you hav eth right version'.
    the runIns.sh starts '/usr/local/jre/bin/jre' followed by paramters. The directory /usr/local/jre (after symbolic linking) does not have a jre file in it. All the other executables seem to be symbolic links to .jave_wrapper.
    Does anyone know what is really happening here? Is a file missing? A link? Should runIns.sh be calling something else?
    Help!!!

    Did you
    ln -s /usr/local/jre_1.1.6-v5 /usr/local/jre

  • How to inherit /usr and make /usr/local read/write

    Is there some way where I can make "/usr" a inherit-pkg-dir, and yet make "/usr/local" a read/write directory. I notice a lot of things I compile want to use "/usr/local" to write to, yet I don't want to remove the inherit for /usr, since a lot of packages go into that directory I would like inherited.
    One work around I tried was to make a symbolic link in the global from "/usr/local" to /local" on the root, and then create a "/local" directory in the non-global zone. This still caused problems.
    So is there any other work arounds or do I have to remove the inherit for "/usr" to make "/usr/local" writeable?

    One work around I tried was to make a symbolic link
    nk in the global from "/usr/local" to /local" on the
    root, and then create a "/local" directory in the
    non-global zone. This still caused problems.We've had success here using the workaround you mentioned.
    We install all of our large software packages in /opt/<package-version>, and treat them as if they are read-only. There are a few exceptions to this -- there are some vendor supplied packages that can't be configured to write logs/configs/whatever outside of it's base directory. The packages supporting our in house software is called /opt/company.
    When it comes to collections of small utilities (awk, fileutils, findutils, etc, etc) we pre-install as much stuff as makes sense with a prefix of /opt/local-<version>, and then distribute this to all of our machines (And subsequently treat it as read only). If we find we missed something that needs to go everywhere, we'll update the /opt/local-<version+1> and change the symlinks to /opt/local. If it's something that just needs to run on a couple machines we'll just make a new /opt/<package-version>.
    In the global zone, we make a symlink for /opt/(read/write dir) to go to a /local/opt/. When /opt is mounted read-only on a zone, the symlinks within /opt point to whatever /local/ that is hosted local to the zone. So our /local directory might have /local/opt/company, /local/opt/inflexible-vendor-1.0.2, etc.
    So far, we have half a dozen test zones created like this and haven't seen any problems. What kind of issues are you seeing when installing like this? (crossing fingers we haven't missed a Fatal Flaw :-))
    -A

  • How do I navigate to /usr/local in the Finder?

    I have a file in a folder beneath /usr/local that I want to be able to open in the Finder. However, there does not appear to be any way to navigate to this folder (or various other folders beneath /) in the Finder. What do I do?
    If it makes any difference, I'm specifically trying to do File Open in Firefox. This brings up the Finder dialog box that I am unable to point to the file I want.
    My workaround is to create a softlink to the file in my home directory. But this is a stupid hack. If the file is on my machine, Finder should be able to find it. That's why they call it Finder.
    Thanks for your help.
    Mac Mini Duo 1.66 GHz, 2 GB (10.4.6); MacBook (10.4.8)    

    For opening things from either Finder or an application you might consider this:
    1. Do as biovizier suggests to go to the hidden parent folder
    2. With /usr open in Finder hold down both the Option and Command keys and click and hold on the proxy icon at the top of folder's toolbar and drag to your Desktop
    3. This will create an alias to the invisible folder which is visible in the Finder and application open and save dialog boxes
    I made a folder called hidden and put aliases to bin, private, sbin and usr in it. I can easily get to the contents of all of them now.
    Francine
    Francine
    Schwieder

  • Can not compile php with "-with-oracle=/usr/local/oracle"

    I work on Linux engine with a x86_64 architecture and use Oracle 10g 10.2.0.1 client for x86_64 linux
    so - when i try to compile php with the oracle argument (-with-oracle=/usr/local/oracle) i get everytime the same error:
    checking Oracle version... configure: error: Oracle needed libraries not found
    I think, maybe i have a problem because configure not found my "64 bit libraries"...
    Can someone help me? I am realy helpless...
    thx

    Did you really want the obsolete "oracle" driver - why not use --with-oci8?
    The user comments in http://www.php.net/oci8 have some good info on 64bit configuration.

  • Permission denied: fopen('/usr/local/ssl/openssl.cnf'

    When installing phone software (CounterPath-Bria3) i get an error message in the system: Permission denied: fopen('/usr/local/ssl/openssl.cnf'..) CounterPath is arguing, they use their own SSL library. Does anybody have an idea, how to fix this?

    I don't see what you're seeing in my logs. I did recreate the authorized_keys, and reattempted to connect. As before, this is what I'm getting:
    debug1: Next authentication method: publickey
    debug1: Offering public key: /Users/zbeckman/.ssh/id_dsa
    debug3: sendpubkeytest
    debug2: we sent a publickey packet, wait for reply
    debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive
    debug1: Trying private key: /Users/zbeckman/.ssh/identity
    debug3: no such identity: /Users/zbeckman/.ssh/identity
    debug1: Trying private key: /Users/zbeckman/.ssh/id_rsa
    debug3: no such identity: /Users/zbeckman/.ssh/id_rsa
    debug2: we did not send a packet, disable method
    It seems to me that on my end, we send the public key... and then it just quietly moves on to the next protocol. There is no error message or any indication that something went wrong, or why it would move on to the next protocol.
    I've done a cksum on my id_dsa.pub and the remote authorized_keys. They are identical. Both files are owned by me, and readable / writable only by me.

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

  • Mysql, mysql account password, and /usr/local/mysql ownership

    Hi all,
    I am new to osX but familiar with Linux. I have a user 'mysql' and a group 'mysql'. I would like to make mysql the root user of the database but cannot figure out how to assign a password. I see the account in netInfo and there is an encrypted password, but no way to change it.
    Depending on what you read, the directory /usr/local/mysql should belong to group mysql - I don't get the concept of 'wheel' yet.
    I do have a regular user named 'meandmine' [not real]. Have /usr/local/mysql/bin in my path; I can start mysql okay. When I try to execute: mysqladmin -u root password 'password' I get an error: Access denied for user 'root'@'locahost'
    So where do I go. I have looked through many, many web sites including Apple, and spent several hours in Borders looking through OsX books without luck.
    Guidance is appreciated.
    Feel free to answer via forum or direct [email protected]
    MacBook Pro Core 2 duo   Mac OS X (10.4.8)  

    for anyone that follows this up:
    I deleted the mysql install
    Activated the computers root account
    Installed mysql under that account a command line with su to get root access
    Then followed the instructions to log in with
    mysql -u root -p
    [enter password]
    I am up and running, and can assign access, create rights etc. to any user: in this case the only non-root user on the machine.
    Thanks for the answers though , especially the bit about the UNIX forum.
    Bob

  • Does Time Machine backup system files (/usr/local/*)?

    Does Time Machine backup system files (/usr/local/*)?
    If so how do you locate them in the Time Machine interface?
    If I go into Time Machine mode and type say "/usr/local" in the Time Machine search bar I get nothing although I can open a terminal application and cd to /usr/local and see bin, lib, include, etc.
    Of course I can never see /usr/local in Finder either ... only at the command line.
    Thanks.

    John, another tech pro ("baltwo") suggests:
    Run this in the Terminal:
    defaults write com.apple.finder AppleShowAllFiles 1
    OPTION-click and hold on Finder's Dock icon->Relaunch which reveals all hidden files. Then, look for that file and delete it. To hide all of those, use the same command, substituiting zero for the one, and relaunch the Finder.

  • Makepkg.conf: Stripping /usr/local Docs Out Of Builds?

    Trying to strip out '/usr/local/gtk-doc/html' out of builds without resorting to 'without-html-dir'. Tried the following individually within makepkg.conf with no effect:
    OPTIONS=(!docs)
    DOC_DIRS=({usr{,/local}{,/share},opt/*}/{doc,gtk-doc}
    DOC_DIRS=({usr{,/local}{,/share},opt/*}/{doc,gtk-doc{,/html}}
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc{,/html}} opt/*/{doc,gtk-doc{,/html}})
    All fo the above appear to echo properly. No options=() within any PKGBUILD files I am testing. How to strip '/usr/local/gtk-doc/html'  out of builds using makepkg.conf (would rather not add an 'rm' statement to each and every PKGBUILD)?
    Last edited by adamlau (2009-03-29 21:43:48)

    Correct. This is my /etc/makepkg-git.conf (makepkg.conf backed up and removed from /etc):
    DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
    'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
    'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
    'rsync::/usr/bin/rsync -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    CARCH="i686"
    CHOST="i686-pc-linux-gnu"
    CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
    CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
    LDFLAGS="-Wl,-O1,--as-needed,--hash-style=gnu"
    #MAKEFLAGS="-j2"
    BUILDENV=(fakeroot !distcc color !ccache !xdelta)
    OPTIONS=(strip !docs !libtool !emptydirs zipman purge)
    INTEGRITY_CHECK=(md5)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    PKGEXT='.pkg.tar.gz'
    SRCEXT='.src.tar.gz'

  • Ld.so.1: sudo: fatal: /usr/local/lib/libintl.so.8: wrong ELF data format

    I have installed sudo version 1.6.9p5.
    after the configuration, when i'm trying to sudo, i get the below error:
    ld.so.1: sudo: fatal: /usr/local/lib/libintl.so.8: wrong ELF data format: ELFDATA2LSB
    ================================
    background of the server is as :
    # uname -a
    SunOS buildman 5.10 Generic_147440-01 sun4u sparc SUNW,Sun-Fire-V440
    # ldd /usr/local/bin/sudo
    libpam.so.1 => /usr/lib/libpam.so.1
    libdl.so.1 => /usr/lib/libdl.so.1
    libintl.so.8 => /usr/local/lib/libintl.so.8 - wrong ELF data format: ELFDATA2LSB
    libsocket.so.1 => /usr/lib/libsocket.so.1
    libnsl.so.1 => /usr/lib/libnsl.so.1
    libc.so.1 => /usr/lib/libc.so.1
    libcmd.so.1 => /lib/libcmd.so.1
    libmp.so.2 => /lib/libmp.so.2
    libmd.so.1 => /lib/libmd.so.1
    libscf.so.1 => /lib/libscf.so.1
    libdoor.so.1 => /lib/libdoor.so.1
    libuutil.so.1 => /lib/libuutil.so.1
    libgen.so.1 => /lib/libgen.so.1
    libm.so.2 => /lib/libm.so.2
    /platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1
    /platform/SUNW,Sun-Fire-V440/lib/libmd_psr.so.1
    Please help.

    installed the libintl for sparc mc and it worked fine.. thanks for the help..

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

Maybe you are looking for

  • Server 2012 RTM Remote Desktop Connection Broker Role Won't Install

    Hey guys, I have been searching for and trying fixes for this for 3 days, and I've gotten no where.  Thanks in advance for trying to help me out. Here's the situation: I have a brand new installation of the Windows Server 2012 Datacenter 64-Bit RTM f

  • 50% Cess on hold for capital goods

    Hi Gurus, I have configured the CIN. The system is calculating the CESS & H CESS correctly. But for the Capital Goods, it is transferring only 50% of the BED to on hold account. It is not transferring the 50% of CESS & H CESS to on hold acount. Can a

  • Authentication on multiple publish instances

    Hi We have multiple websites on each publisher instances in production environment with 3 publish instances load balanced. One of the website has a login feature  - When a user registers on the website, the user profile gets created in any one of the

  • Deploying a Flex iPad App wirelessly without registering a device's UIUD

    Hi Is there any information or step by step guide to building and deploying a Flex iPad app wireless, without registering the device's ID? Is this possible with Flex? We do have an iOS Developer Enterprise Program license. Every set of instructions f

  • Skype to go access number lookup

    where can I look up my access number from a mobile phone? I can't find a way to look it up on the mobile skype site and I can't find a way to get to the regular skype site either.