Must run /usr/local/... apps as sudo?

Has something deep in the esoteric bowels of OS X changed in Snow Leopard that now requires me to "sudo" any application I might otherwise run from /usr/local? Examples: mysql and git are installed to /usr/local/mysql-5.0.67 and /usr/local/git (respectively) — both of which were installed on this MacBook Pro while running 10.5, both of which ran just fine (as my normal user) for months, and now both... there but won't run unless I sudo...
Example!
[20:16:51 ~]
rob@Connemara $ git --version
-bash: git: command not found
[20:17:04 ~]
rob@Connemara $ /usr/local/git/bin/git --version
-bash: /usr/local/git/bin/git: Permission denied
[20:17:18 ~]
rob@Connemara $ sudo git --version
git version 1.6.4.2
(1) Yes, /usr/local is in my $PATH.
(2) Yes, /usr/local/git/bin is in my $PATH.
(3) Ditto /usr/local/mysql (symlinked...)
...anyone?

Solved here: http://discussions.apple.com/thread.jspa?messageID=10139530
sudo chmod 755 /usr/local

Similar Messages

  • Script to start an app in /usr/local/bin

    I am new to trying AppleScript. I use gnupg and want to start an app called "gpg-agent" located in /usr/local/bin/ . I want to pass it an arg, something like --daemon and maybe another ... first I want to see if it is even running ...
    But when I compile, AppleScript prompts me to locate gpg-agent. That browse function only lists certain folders and never hidden nor /usr/ ....
    Any help please?

    Oy!
    well, golly ...no, just wanna scribble something to make my gpg work for encryption. Need to get something started outside the program. Scfripting sounded nice since I didn't really want to do C++
    where's a good forum.
    thanks for the patience

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

  • Running multiple java apps simultaneously, using different versions of jre.

    I have a situation where I have 3 or 4 applications (and one applet) that were built over time, each with a different version of the jdk (ranging from 1.2.2.005 to 1.3.2). I need to know of a way (and it must exist) to run each of these applications on the same machine, and at runtime, have each application (or applet) run with its respective version of the jre. Certainly, one could change some source code and make all programs compatible with a particular jre, but that doesn't solve my problem if a new app is built with a new version of the jdk down the road. Currently, each runs fine by themselves, but if I try to run them together as different processes, some won't do anything because the default jre may not be what it needs. Would the Java Plug-in software have a role to play in this? Is there a way to specify (link) which application should use which jre?
    P.S. These applications (right now) don't have to interact or interface in any way. I just need to have them all running as separate processes on the same machine and be able to jump from one to the other.

    Write a batch file that sets the environment properly and restores it afterwards, here is a sample batch file we use which switches to IBM's JRE to run an app:
    OLDPATH=$PATH
    PATH=$PATH:"/usr/local/java/IBMJava2-13/jre/bin"
    OLDCP=$CLASSPATH
    CLASSPATH="/usr/local/java/IBMJava2-13/jre/lib/rt.jar:."
    OLDHOME=$JAVA_HOME
    JAVA_HOME="/usr/local/java/IBMJava2-13/jre"
    # put the command to execute your program here
    java -jar app.jar
    PATH=$OLDPATH
    CLASSPATH=$CLASSPATH
    JAVA_HOME=$JAVA_HOME
    This is for Linux, but it should be possible to write one for Windows too.

  • Running a Java App like a service in linux and not closing with window

    I know its not really a question i should ask you but thought you might have a quick answer for me, I have trying to running a small java application on one of the servers. I want it to run almost like a service, what i mean is i dont want the application to end when the terminal session is ended. So i thought i should put an entry into the /etc/rc.local file as follows (Final Line):
    cd /home/bluepoint/Teamselect_ServerApp_v1.0/bin/
    java Server
    #!/bin/sh
    # This script will be executed *after* all the other init scripts.
    # You can put your own initialization stuff in here if you don't
    # want to do the full Sys V style init stuff.
    touch /var/lock/subsys/local
    /home/bluepoint/kmyfirewall.sh
    su - bluepoint "/usr/local/tomcat/jakarta-tomcat-5.0.28/bin/startup.sh"
    cd /home/bluepoint/startme.sh
    As you will see it call a shell script which contains only the following lines (or see attached):cd /home/bluepoint/Teamselect_ServerApp_v1.0/bin/
    java Server
    but nothing happens when i restart the server. The DB, sendmail, tomcat etc start fine but not my app.
    The application works fine if i start it in a terminal window so i know it can run.
    Any ideas what im doing wrong??
    Kind Regards

    It's probably not happening because you missed the -c from the su command. However this isn't the correct approach to daemon processes on linux (which is what you're after).
    What you need to do is to place a script in the /etc/init.d directory. This script should take a single argument and start the daemon if the argument is "start", and stop it if "stop". Check out the scripts already in there to see how it's done.
    Then go to System Settings/Server settings/Services and enable the new service for the normal run level.

  • How can I run a gui app from an su shell?

    Hello,
    I login to my mac as a non-admin account.  I then open a terminal and su to my admin account for anything requiring it.  I am trying to run a gui app from the terminal window, but get this error, and the app does not open:
    $ /usr/local/bin/wireshark
    2011-08-14 06:54:29.327 defaults[18406:903]
    The domain/default pair of (kCFPreferencesAnyApplication, AppleAquaColorVariant) does not exist
    2011-08-14 06:54:29.346 defaults[18407:903]
    The domain/default pair of (kCFPreferencesAnyApplication, AppleHighlightColor) does not exist
    ./sync_osx_look.sh: line 40: gtkrc: Permission denied
    (process:18396): Gdk-WARNING **: locale not supported by C library
    (wireshark-bin:18396): Gtk-WARNING **: Locale not supported by C library.
              Using the fallback 'C' locale.
    (wireshark-bin:18396): Gtk-WARNING **: cannot open display:
    I know I can "switch user" but this is cumbersome as it requires typing a password each time, and I need to have applications side-by-side for easy access and testing.  Any thoughts?
    Thanks.

    I use LaunchAsRoot to run GUI apps as the root user, while logged in to my admin account.
    Another way is to use Applescript.  Here's what I do to run Console as root:
    do shell script "/Applications/Utilities/Console.app/Contents/MacOS/Console > /dev/null 2>&1 &" with administrator privileges

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

  • Problrem running ADF 11g App LocalHost URL vs IP URL

    Hi all,
    we are using Jdeveloper 11.1.1.5 and ADF to develop or app. The issue happens in some machines, but not in others. All of them use Windows 7 Pro 32 bit, same updates, etc.
    We've checked IE9 configuration (must be IE) and is the same in all machines; all of them have the same proxy setup (corporate network).
    Problem is that when running app using localhost url, some events in some components don't execute. But they do when we run the same app using local IP url.
    It happens in a popUp window that has an editable table inside, among some other inputTexts. One of the columns on the table is a commandLink to delete the current row (so every row has its own delete link). And this is the event that de not get triggered (actionEvent). When I click on row-3-delete-link, that row gets deleted. Next I click on any other row's delete link, nothing happens. Only when i click on the add button (command button added to the popUp), table data gets refreshed.
    I've reading about this, and all i could find was the opossite behavior: app fails on local ip URL and works ok with localhost URL.
    Thanks in advance for ur help.
    Jaime

    Hi,
    have you checked the etc/host file on the Windows platform that don't work? As you say, the behavior is different on different machines and this difference is what you need to find for a reproducible testcase
    Frank

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

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

  • JVM Crashes Sporadically with ORA-24550 while Running Tomcat Web App

    We have experienced a problem that has been troubling us for some time now. Our website goes down sporadically as a result of a JVM crash. The Tomcat catalina.out log reads as follows:
    # A fatal error has been detected by the Java Runtime Environment:
    # SIGSEGV (0xb) at pc=0x00002aaac5938c2b, pid=2214, tid=47766235233056
    # JRE version: 7.0_07-b10
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.3-b01 mixed mode linux-amd64 compressed oops)
    # Problematic frame:
    # C [libclntsh.so.11.1+0x15f7c2b] nnfltimexp+0x1f
    # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    # An error report file with more information is saved as:
    # /usr/local/tomcat/tomcat-gbco2/logs/hs_err_pid2214.log
    # If you would like to submit a bug report, please visit:
    # http://bugreport.sun.com/bugreport/crash.jsp
    ORA-24550: signal received: [si_signo=6] [si_errno=0] [si_code=-6] [si_int=367714944] [si_ptr=0xffff810115eae280] [si_addr=0x69000008a6]
    kpedbg_dmp_stack()+360<-kpeDbgCrash()+192<-kpeDbgSignalHandler()+119<-skgesig_sigactionHandler()+218<-__sighandler()<-gsignal()+53<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0<-00002B71717BC1F0
    I am no expert in reading crash logs, but I can provide it if it would be helpful.
    We are running our app on
    Intel (R) Xeon (R) CPU X5550 @ 2.67GHz with 4 cpu cores.
    CentOS Release 5.7 (Linux xena.pcbi.upenn.edu 2.6.18-274.3.1.el5 #1 SMP Tue Sep 6 20:13:52 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux)
    Total server RAM: 24GB
    Tomcat 6.0.26
    Java 7.0_07-b10 (Java VM: Java HotSpot(TM) 64-Bit Server VM)
    Oracle Enterprise database server (11.2.0.3) - (separate server)
    OCI 11.2.0.3 (64-bit client)
    Our sqlnet.ora file contains the following:
    NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, EZCONNECT)
    DIAG_ADR_ENABLED=OFF
    DIAG_SIGHANDLER_ENABLED=FALSE
    DIAG_DDE_ENABLED=FALSE
    We read about issues with OCI 11.2.0.1 in the Oracle support website and we upgraded. But the issue remains. We are at a loss as to where to look/what to do next. Any suggestions would indeed be most welcome.
    Many thanks -
    Cris

    Chris,
    Another developer is reporting a very similar problem:
    http://www.jfree.org/phpBB2/viewtopic.php?t=10452
    Hopefully we can reduce this to a fairly simple and reproducible test case and then get it fixed.
    Regards,
    Dave Gilbert
    JFreeChart Project Leader

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

  • Usr/local exists?

    I'm a LaTeX user and I want to uninstall MacTeX removing all the files or folders by hand. So, what I need to know is if "usr/local" comes with Mac OS X 10.4 "Tiger"?
    If "usr/local" comes with Tiger, the following subfolders exist?
    -bin
    -doc
    -include
    -lib
    -man
    -share
    And what about these subfolders of usr, exist too?
    -bin
    -lib
    -libexec
    -local (I said it above)
    -sbin
    -share
    -standalone
    -X11R6 (of course this folder comes with Tiger)
    I need the help of a Mac Expert who tells me what folders come with Tiger for no removing important files from the Operative System.
    Thanks.

    I don't think '/usr/local' exists in a base install. For example, try running:<pre>mdls -name kMDItemFSCreationDate /usr/*</pre>The creation date of my '/usr/local' is different from '/usr/bin' or '/usr/sbin' among others that I am sure are a part of the default, and which all share the same date.
    However, LaTeX isn't the only thing that might install there so it would probably be a good idea to go through its contents before deleting it. Also, I'm not familiar with MacTex - does it provide any sort of installation log? Programmes installed using Apple's "Installer.app" will leave a record in "/Library/Receipts", for example...

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

  • Accessing /usr/local/bin directory

    I'm new to Unix and trying to access the directories /usr/local/bin and usr/local/lib to put files into that I need to run a program, but Terminal keeps telling me "no such file or directory." I am doing this work on my own computer, but do I need special permission to access these files?
    Any advice on moving the files into these directories?

    Usually, files get into /usr/local when you run "configure && make && sudo make install". Since you're new, I would suggest running "configure", "make", and "sudo make install" separately until you get the hang of it.

Maybe you are looking for

  • MM-SUS Functionality in EBP-SUS

    Dear SRM Gurus, We are working on SRM 7.0, Extended Classic Scenario.  The SUS Scenario that we will set-up is EBP-SUS.  However, there are functionalities in MM-SUS that the client requires as well.  How do we set-up the following: 1) whenever Goods

  • Transfer Library from Ipad to Laptop

    My old laptop that has crashed and cannot be rebooted holds my Itunes library. The library is on my Ipad mini and i want to transfer it to my new laptop. is this possible

  • Tax Invoice Report

    Hi All, as i'm new to oracle apps and reports,i have assigned some work on reports that is with India Localization. Can any one is intrested me to helpin this issue as i ahve given this report by 2day. If any one is intrested i will provide the acces

  • Display Condition Type - Error

    Hello Experts, I am trying to display a Custom Condition Type (ZCTY) on VK13 Transaction. But It's giving me an error: Rebate condition ZCTY is not defined for this transaction     Message no. VK028 Diagnosis     You have attempted to process rebate

  • Can someone verify my code for calculatin​g a Gaussian kernel?

    I've attached my VI for calculating a Gausssian kernel function of selectable width and resolution.  I am not an expert in mathmatics and I was hoping someone on here could confirm the validity of my code.  If anyone has any suggestions please let me