[SOLVED] Permissions for /usr/bin/ping

Earlier today I found myself unable to use ping, getting the following error message.
[cyang@blueberry ~]% ping google.com
ping: icmp open socket: Operation not permitted
However, I found that pinging as root still worked.
[cyang@blueberry ~]% sudo ping google.com
PING google.com (74.125.225.35) 56(84) bytes of data.
64 bytes from ord08s06-in-f3.1e100.net (74.125.225.35): icmp_req=1 ttl=54 time=24.3 ms
64 bytes from ord08s06-in-f3.1e100.net (74.125.225.35): icmp_req=2 ttl=54 time=23.5 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 23.583/23.978/24.374/0.424 ms
I found a page which described a similar problem and solution which worked for me:
http://forums.cpanel.net/f5/ping-icmp-o … 14173.html
Now I have a couple of questions:
Is this the correct way to fix this problem? Or is this dangerous (I'm not too familiar with setuid)?
What caused this to occur? I had no problems previously. I see that my iputils package which owns ping was last updated over a month ago, has anyone else seen this issue?
Thanks,
Chun
Last edited by cyang (2012-08-28 03:51:39)

Arctus wrote:Take a look at this.
Same issue about a month ago, including causes and solutions.
This looks promising. I'm running a custom kernel with security labels disabled. I'll try to recompile to see if that fixes it.

Similar Messages

  • [Solved] Permissions problem /usr/bin/install: cannot create

    I've been looking at this for quite a while now and am running out of ideas/inspiration. Google isn't helping and after reading the docs on the wiki, I'm still none the wiser.
    So, I've compiled the source code properly but my PKGFILE is having a problem at the make install stage:
    make[2]: Entering directory `/home/adam/Downloads/foo/src/foobillard-2.9/src'
    /bin/sh ../mkinstalldirs /usr/bin
    /usr/bin/install -c foobillard /usr/bin/foobillard
    /usr/bin/install: cannot create regular file ‘/usr/bin/foobillard’: Permission denied
    make[2]: *** [install-binPROGRAMS] Error 1
    make[2]: Leaving directory `/home/adam/Downloads/foo/src/foobillard-2.9/src'
    make[1]: *** [install-am] Error 2
    make[1]: Leaving directory `/home/adam/Downloads/foo/src/foobillard-2.9/src'
    make: *** [install-recursive] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    My PKGFILE can be seen at: http://pastebin.com/wrbZ6niq.
    TIA
    Last edited by kabads (2013-05-14 20:50:54)

    kabads wrote: and after reading the docs on the wiki, I'm still none the wiser.
    What exactly have you been reading? Because if you take /usr/share/pacman/PKGBUILD.proto or read https://wiki.archlinux.org/index.php/Creating_Packages, you can't get to what you have without some serious changes. It seems like you took some bad and old PKGBUILD (not PKGFILE) as a starting point instead of more official/up-to-date docs.
    At the very least you should read the section about the package() function.
    Edit: now you can copy/paste from the above reply, but try to understand how makepkg works. And since you passed the prefix to ./configure, it's unlikely that you'll need it again for the install step.
    Last edited by Raynman (2013-05-14 20:25:51)

  • Patch for /usr/bin/netcfg

    Hi all!
    I have submitted a bug report and made a patch for /usr/bin/netcfg, from initscripts-0.7.2-3.
    Now "netcfg --menu" works perfect with GPM enabled, so we can choose a different profile from a VC without shutting down GPM.
    Of course, "/etc/rc.d/network restart" (or start) will work too when having NET_PROFILES=(menu) in /etc/rc.conf - and executed from a VC.
    Hope it helps.
    You will find the patch and the bug report in the following link:
    http://bugs.archlinux.org/task/4916

    FANTASTIC!  Everyone who wants something add to Arch should take a leaf from your book - this is the way to get things done

  • [solved] build failing: /usr/bin/ld: cannot find -lgd

    I'm trying to satisfy crossover dependencies and recommendations. Found lib32-libgphoto2 on AUR with a few dependencies of its own, all of which I installed succesfully.
    When doing a makepkg for lib32-libgphoto2 I get the following error:
    libtool: link: gcc -m32 -shared -fPIC -DPIC ax203/.libs/ax203_la-library.o ax203/.libs/ax203_la-ax203.o ax203/.libs/ax203_la-ax203_decode_yuv.o ax203/.libs/ax203_la-ax203_decode_yuv_delta.o ax203/.libs/ax203_la-ax203_compress_jpeg.o ax203/.libs/ax203_la-jpeg_memsrcdest.o ax203/.libs/ax203_la-tinyjpeg.o ax203/.libs/ax203_la-jidctflt.o -Wl,-rpath -Wl,/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2/.libs -Wl,-rpath -Wl,/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2_port/libgphoto2_port/.libs -L/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2_port/libgphoto2_port/.libs ../libgphoto2/.libs/libgphoto2.so -L/usr/lib32 /home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lexif ../libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lltdl -lpthread -lgd -lz -lm -lpng16 -lfreetype -lfontconfig -ljpeg -m32 -march=x86-64 -mtune=generic -O2 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-soname -Wl,ax203.so -Wl,-version-script -Wl,.libs/ax203.ver -o .libs/ax203.so
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../libgd.so when searching for -lgd
    /usr/bin/ld: skipping incompatible /usr/lib/libgd.so when searching for -lgd
    /usr/bin/ld: cannot find -lgd
    collect2: error: ld returned 1 exit status
    Makefile:1659: recipe for target 'ax203.la' failed
    make[3]: *** [ax203.la] Error 1
    make[3]: Leaving directory '/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/camlibs'
    Makefile:3347: recipe for target 'all-recursive' failed
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory '/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/camlibs'
    Makefile:622: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/someuser/Downloads/aur/lib32-libgphoto2/src/build'
    Makefile:444: recipe for target 'all' failed
    make: *** [all] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    In that blob of text it says 'skipping incompatible' so it found something but I don't know to fix that or find out what it needs. A search on the internet I found that the message (in title) means I'm missing 32-bit library for gd, so I pulled that from AUR and installed it, but its still giving me this message.
    Any ideas what I need to do to get this to build?
    Thanks in advance.
    Last edited by mouseman (2014-05-05 05:24:27)

    The linker tries to find libgd. so. If you build lib32-libgphoto2, I guess from the name that you are building a 32 bit package on a 64 bits installation. You should have the 32 bit version of libgd. so and you only have the 64 bit version (hence skipping incompatible /usr/lib/libgd.so). Note that I have not found this version in the multilib repository (nor on AUR), I think you will have to build it yourself.

  • Need pacman files for /usr/bin

    Hello, in a freak accident as root, I've deleted my /bin folder. I still have all the rest intact. All I need is pacman's files in that folder in order to recover the others. Can anyone zip their /usr/bin or just their /usr/bin with the pacman files?
    And yes, I have learned my lesson about double checking commands before execution as root.
    Last edited by deadlylife (2010-06-19 21:52:58)

    http://wiki.archlinux.org/index.php/Ins … ting_Linux
    specifically the "Install the required files onto the host system" section.

  • More than 8 colors for /usr/bin/emacs?

    Hello -- i'm trying to customize my experience on Terminal, and the first problem is that I'm not getting enough colors in emacs...
    M-x list-colors-display
    indicates that I'm only getting 8 colors... Now maybe I could adjust those colors to be what I want, but what I'd really like is a full palette of 256 colors. How can I do this?
    My settings are:
    DISPLAY=/tmp/launch-cdshyE/:0
    TERMPROGRAM=AppleTerminal
    TERMPROGRAMVERSION=272
    LANG=en_US.UTF-8
    TERM=xterm-color
    HOSTTYPE=intel-mac
    VENDOR=apple
    OSTYPE=darwin
    MACHTYPE=x86_64
    thanks!

    You need a different terminal for that. The Mac OS X Terminal application support 8 colors.
    iTerm <iTerm.sf.net> I think can handle 8 colors and 8 half tones of the same colors.
    After that I think you need to look at installing a X11 xterm based terminal. But if you are going to use an X11 xterm, you might as well run an X11 based emacs. Or better yet, download a Mac'ified emacs that uses the Aqua GUI interface and get all the colors you want.
    For X11 xterms, try <http://MacPorts.org> or <http://Fink.sf.net>. For GUI versions of emacs try searching <http://VersionTracker.com> or even Google.

  • SAPCAR: can not set permissions for /EPS/in/SIGNATURE.SMF

    We are running SUM 1.0 SP10 on IBM i with V7R1 to put EHP6 and SP's on an ERP 6.0 system.  Phase PREP_PRE_CHECK/SCANDIR_EPS0 repeatedly ends with multiple errors that SAPCAR: can not set permissions for /EPS/in/SIGNATURE.SMF file.  We tried increasing the sidADM and R3GROUP authority to the file, but it changes them back and ends with a different number of errors each time, see example:
    SAPup> Starting subprocess with PID 4295601 in phase 'SCANDIR_EPS0' at 20140319101619
        ENV: DIR_LIBRARY=/usr/sap/Y60/SUM/abap/bin
        ENV: ILE_PATH=/usr/sap/Y60/SUM/abap/bin:/usr/sap/Y60/SYS/exe/run:/usr/bin:.
        ENV: LIBPATH=/usr/sap/Y60/SUM/abap/bin:/usr/sap/Y60/SUM/jvm/jre/lib/ppc64/server:/usr/sap/Y60/SUM/jvm/jre/lib/ppc64:/usr/sap/Y60/SUM/jvm/jre/../lib/ppc64:/usr/sap/Y60/SUM/jvm/jre/lib/ppc64/jli:/usr/sap/Y60/SUM/jvm/jre/../lib/ppc64/jli:/usr/sap/Y60/SYS/exe/run:/usr/sap/Y60/hdbclient:/sapdb/clients/Y60/lib/lib64:/sapdb/clients/Y60/lib:/sapdb/programs/lib/lib64:/sapdb/programs/lib
        ENV: PASE_LANG=en_US
        ENV: PASE_LC__FASTMSG=true
        ENV: PASE_LIBPATH=/usr/sap/Y60/SUM/abap/bin:/usr/sap/Y60/SYS/exe/run:/usr/sap/Y60/hdbclient:/sapdb/clients/Y60/lib/lib64:/sapdb/clients/Y60/lib:/sapdb/programs/lib/lib64:/sapdb/programs/lib
        ENV: PASE_LOCPATH=/usr/lib/nls/loc
        ENV: PASE_NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/en_US/%N:/usr/lib/nls/msg/en_US/%N.cat
        ENV: PASE_PATH=/usr/sap/Y60/SUM/abap/bin:/usr/sap/Y60/SYS/exe/run:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:/usr/bin:.:/usr/sap/Y60/hdbclient:/sapdb/clients/Y60/bin:/sapdb/programs/bin
        ENV: PASE_STDIO_ISATTY=N
        ENV: PASE_THREAD_ATTACH=Y
        ENV: PASE_TZ=<EST>5<EDT>,M3.2.0,M11.1.0
        ENV: PASE_USRGRP_LIMITED=
        ENV: PATH=/usr/sap/Y60/SUM/abap/bin:/usr/sap/Y60/SYS/exe/run:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:/usr/bin:.:/usr/sap/Y60/hdbclient:/sapdb/clients/Y60/bin:/sapdb/programs/bin
        ENV: SAPSYSTEMNAME=Y60
        ENV: dbms_type=db4
        ENV: dbs_db4_schema=R3Y60DATA
        ENV: ILE_DIR_LIBRARY=/usr/sap/Y60/SUM/abap/bin
        ENV: PASE_DIR_LIBRARY=/usr/sap/Y60/SUM/abap/bin
        ENV: DIR_LIBRARY_RMT=/usr/sap/Y60/SUM/abap/bin
        ENV: ILE_DIR_LIBRARY_RMT=/usr/sap/Y60/SUM/abap/bin
        ENV: PASE_DIR_LIBRARY_RMT=/usr/sap/Y60/SUM/abap/bin
        ENV: ILE_LIBPATH=/usr/sap/Y60/SUM/abap/bin
    EXECUTING /usr/sap/Y60/SUM/abap/bin/SAPCAR -flat -R /usr/sap/transD60/EPS/in -xvf /tmp/NO_SAVE/ERP_EHP6_Download/K-60609INECCDIMP.SAR
    SAPCAR: processing archive /tmp/NO_SAVE/ERP_EHP6_Download/K-60609INECCDIMP.SAR (version 2.01)
    x CSR0120031469_0080800.PAT
    x SIGNATURE.SMF
    SAPCAR: can not set permissions for /usr/sap/transD60/EPS/in/SIGNATURE.SMF (error 13). No such file or directory
    SAPup> Process with PID 4295601 terminated with status 13 at 20140319101623!
    Has anyone lse exprienced this and can share a fix?
    Thank you,
    -Margie

    Hi,
    We had the same issue, and in my opinion it is caused by the parallelisation of sapcar during SUM phase PREP_PRE_CHECK/SCANDIR_EPS0
    I did see several parallel SAPCAR jobs running during this phase.
    So what happens when one job extracts SIGNATURE.SMF at the same time another job tries to finalize its extraction by setting the permissions for /usr/sap/trans/EPS/in/SIGNATURE.SMF?
    It can happen that permissions are being set at the same time another sapcar yust deletes this file to begin extracting.
    Since we had 146 SAR archives that needed to be extracted, a retry allways ended up in 4 to 12 conflicts.
    What did do the trick was adding
    /sapcar/extrcact_parallel = 0
    to the file
    ../SUM/abap/bin/SAPup.par
    Just as Christoph Langer suggested.
    We had to restart the whole phase, a repeat was not enough to solve the problem.

  • Are /usr/ubc binaries different than /usr/bin binaries?

    Hi,
    I am running SunOS 5.8 and I have following questions about solaris distribution:
    1. Are /usr/ucb binaries different than regular binaries like /usr/bin etc...
    Because at file level they appear to be the same:
    e.g. ps
    $ ls -ltr /usr/ucb/ps /usr/bin/ps
    -r-xr-xr-x 38 root bin 5.2K Jan 5 2000 /usr/ucb/ps
    -r-xr-xr-x 38 root bin 5.2K Jan 5 2000 /usr/bin/ps
    2. Are /usr/ubc binaries are part of standared solaris distribution?
    Thanks

    Hi,
    I am running SunOS 5.8 on SPARC I assume...
    and I have following
    questions about solaris distribution:
    1. Are /usr/ucb binaries different than regular
    binaries like /usr/bin etc...Yup (at least most of the time). /usr/ucb/ gives some behavior of older BSD systems for compatibility.
    Because at file level they appear to be the same:
    e.g. ps
    $ ls -ltr /usr/ucb/ps /usr/bin/ps
    -r-xr-xr-x 38 root bin 5.2K Jan 5 2000 /usr/ucb/ps
    -r-xr-xr-x 38 root bin 5.2K Jan 5 2000 /usr/bin/psThis is a side effect of a feature called 'isaexec'. You'll notice the link count is 38, so this file is linked as 38 different names.
    The 'ps' command looks through /proc, so the binary has to match the currently running kernel architecture (whether 32-bit or 64-bit). 'isaexec' allows you to have multiple binaries that are called properly based on architecture.
    On my machine:
    # ls -litr /usr/ucb/ps /usr/bin/ps /usr/lib/isaexec
    18227 -r-xr-xr-x 37 root bin 5256 Jan 5 2000 /usr/ucb/ps
    18227 -r-xr-xr-x 37 root bin 5256 Jan 5 2000 /usr/lib/isaexec
    18227 -r-xr-xr-x 37 root bin 5256 Jan 5 2000 /usr/bin/ps
    So all 'isaexec' does is look for a binary with the same name as it was called in the architecture specific directories. So for /usr/ucb/ps, it's these:
    # ls -l /usr/ucb/sparcv7/ps /usr/ucb/sparcv9/ps
    -r-xr-xr-x 1 root sys 23504 Jul 15 2005 /usr/ucb/sparcv7/ps
    -r-xr-xr-x 1 root sys 32264 Jul 15 2005 /usr/ucb/sparcv9/ps
    And for /usr/bin/ps It's these:
    # ls -l /usr/bin/sparcv7/ps /usr/bin/sparcv9/ps
    -r-sr-xr-x 1 root sys 29196 Jul 15 2005 /usr/bin/sparcv7/ps
    -r-sr-xr-x 1 root sys 38536 Jul 15 2005 /usr/bin/sparcv9/ps
    So different binaries (and different architectures):
    # file /usr/bin/sparcv7/ps /usr/bin/sparcv9/ps /usr/ucb/sparcv7/ps /usr/ucb/sparcv9/ps
    /usr/bin/sparcv7/ps: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped
    /usr/bin/sparcv9/ps: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, stripped
    /usr/ucb/sparcv7/ps: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped
    And you can use 'truss' to see how this works:
    /usr/ucb/sparcv9/ps: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, stripped
    Note that this feature (isaexec) has nothing specifically to do with /usr/ucb. It's used by any system binary that needs separate versions for 32-bit vs 64-bit to run properly. (truss, p*, uptime, ...)
    2. Are /usr/ubc binaries are part of standared
    solaris distribution?There's only one "Solaris" distribution, so yes. I believe they get installed at the 'user' installation level and above, but you'd have to check on that.
    Darren

  • [SOLVED]Symlinking /bin, /sbin to /usr/bin for system update

    Hello everyone,
    Reading this has exposed a basic gap in my knowledge of linux ownership:
    https://www.archlinux.org/news/binaries … ervention/
    How is it that a directory /bin can be owned by a package contained within it, as is implied by the query option "-o" to pacman in step 1 of the above linked page?:
    $ pacman -Qqo /bin /sbin /usr/sbin | pacman -Qm -
    Incidentally, I get no output from this command or the others in steps 1 and 3, so it seems from reading the following that there are no packages causing problems (I'm pretty sure I don't have any packages from unofficial repositories):
    https://bbs.archlinux.org/viewtopic.php?id=164505
    Secondly, (and I may be completely wrong here), is it really as simple as this to move all the binaries from /bin and /sbin into /usr/bin, then create symbolic links in the root directory pointing to this new location?:
    cd /
    rsync -a /bin/ /usr/bin/
    rsync -a /sbin/ /usr/bin/
    ln -s /bin /usr/bin
    ln -s /sbin /usr/bin
    rm -R /bin /sbin
    I use rsync -a here to preserve permissions, although I've heard that I could use tar. Is there a safer/more succinct way of doing this? And finally, I delete the original directories and their
    contents last. If I were to delete them AFTER copying their contents to /usr/bin but BEFORE creating the symlinks, I would be in serious trouble, wouldn't I?
    Last edited by Amp (2013-06-04 20:10:26)

    If you dont have any packages that is in the wrong place you just have to follow the instructions from the front page to upgrade your system.
    # pacman -Syu --ignore filesystem,bash
    # pacman -S bash
    # pacman -Su
    No need for manual moving, deleting and symlinking.

  • [SOLVED] Freezing while executing /usr/bin/openbox from Openbox menu

    I'm following the instructions in this webpage to create a dynamic menu. I have successfully achieved this on my laptop by installing the openbox-menu package and typing the following lines in menu.xml:
    <menu id="desktop-app-menu" label="Applications" execute="/usr/bin/openbox-menu lxde-applications.menu" />
    For some reason, the same doesn't work on my desktop PC. After editing and saving the menu.xml file, I restart Openbox and when I right click the desktop and hover the "Applications" menu item the desktop freezes. However, I can still move the mouse and switch to other ttys with Ctrl+Alt+Fx, therefore I believe it's reasonable to suggest that the problem lies in the permissions.
    What should I do about it?
    Last edited by Martificiam (2013-02-03 11:29:21)

    Umm, that's not "some random" webpage at all... It worked on all of my Arch Linux installations. The "lxde-applications.menu" is just an argument. But thanks for the link, I'll look into it.
    It's just that it's more of a workaround, not a solution, really... since it has ALWAYS worked for me.
    Furthermore, while setting up Arch on my laptop I remember experiencing similar problems (running a particular program from the openbox menu and resulting in a desktop freeze). This must have something to do with permissions.
    Edit: the xdg_menu worked perfectly, but I would still prefer to use the openbox-menu. I'm marking this as solved anyway.
    Last edited by Martificiam (2013-02-03 11:29:06)

  • [Solved] How to save a file in /usr/bin/local using gedit as an admin?

    In my attempt to run these two programs:
    https://github.com/kerchen/export_gr2evernote
    https://github.com/spiermar/bookmarks2evernote
    I noticed they assumed the default python is python 2. I have python 3.3.1 and 2.6.8. I'm following the instructions at: https://wiki.archlinux.org/index.php/Py … ld_scripts
    Created a file with this:
    #!/bin/bash
    script=`readlink -f -- "$1"`
    case "$script" in
    /home/Dropbox/export_gr2evernote-master1/*|/home/Dropbox/bookmarks2evernote2/*)
        exec python2 "$@"
    esac
    exec python3 "$@"
    I then, tried to save it as p2 under /usr/local/bin/ where the only thing that's there is meteor, node, and npm, and it throws me an error saying I don't have enough permissions.
    How do I save p2 as an admin in /usr/bin/local using gedit?
    I've searched on the forums 'create a file in /usr/' and I haven't found anything. Can someone please help me?
    Last edited by jjshinobi (2013-04-23 05:20:47)

    jjshinobi wrote:
    sidneyk wrote:
    jjshinobi wrote:
    I moved p2 to bin, edited my projects path with the username in front of home, saved it as python, made it executable (#sudo chmod +x /usr/local/bin/python), removed p2. Ran:
    #python evernote2enex.py -m 10
    It's still referencing python 3...
    "python3: can't open file 'evernote2enex.py': [Errno 2] No such file or directory"
    My python file contains this:
    #!/bin/bash
    script=`readlink -f -- "$1"`
    case "$script" in
    /home/<user>/Dropbox/export_gr2evernote-master1/*|/home/<user>/Dropbox/bookmarks2evernote2/*)
        exec python2 "$@"
    esac
    exec python3 "$@"
    I did everything exactly like the wiki said, what seems to be the problem?
    OK. Looking at the 2 scripts you quoted, neither one is using a shbang line to set a python version to call. Without that, the python intercept doesn't even come into play. The problem that I see is the way you are starting it:
    sudo nano /usr/local/bin/python
    Is root really necessary for these if they are in your /home/<user>/Dropbox/ directory. And it appears that you are assuming python3 when you start them that way. If you are going to use that method and they are indeed python2 scripts, then change your command to this:
    #python evernote2enex.py -m 10
    You might try it as your normal user too in case root isn't really required.
    I tested out the first ten with:
    #python2 export2enex.py -m 10
    it worked!
    then proceded with
    #python2 export2enex.py GStarred -n exported.enex
    The script is fully functional. Thanks man!
    Actually, you're not even using the script when starting your python scripts that way. You are explicitly calling either python3 (python) or python2 (python2) to run the indicated python script and not even touching the work around /usr/local/bin/python script. If your python script started with a line like either :
    #!/usr/bin/env python
    or:
    #!/usr/bin/python
    And was executable, such that you called it by it's name, i.e. "someprogram.py", then the python script in /usr/local/bin/ would take precedence and effectively intercept the python call and choose the appropriate version of python as long as the path to the directory where "someprogram.py" resides is specified in that /usr/local/bin/python script.
    Last edited by sidneyk (2013-04-25 15:40:19)

  • [SOLVED]pacman fails to upgrade... /usr/bin/vercmp: cannot execute bin

    Proceed with installation? [Y/n] y
    :: Retrieving packages from core...
    pacman-3.2.1-1-x86_64 491.3K 1850.7K/s 00:00:00 [########################################################################################################] 100%
    checking package integrity...
    (1/1) checking for file conflicts [########################################################################################################] 100%
    (1/1) upgrading pacman [########################################################################################################] 100%
    warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew
    /tmp/alpm_eT02H1/.INSTALL: line 5: /usr/bin/vercmp: cannot execute binary file
    /tmp/alpm_eT02H1/.INSTALL: line 5: [: : integer expression expected
    Here is more info on my system and the file vermcp is installed and permissions seem correct.
    http://rafb.net/p/MYk3pO21.html
    HELP?
    Last edited by rooloo (2008-09-09 00:07:09)

    Ok, this was my dumb mistake again. I was testing out powerpill on my server which is a 32 bit machine. I tried copying my 64 bit mirrorlist to my 32 bit server because I have it ranked and slimmed down to only the essential servers.

  • Make: execvp: /usr/bin: Permission denied[SOLVED]

    hey, I'm trying to install an app called jconv.
    I get this error:
    make: execvp: /usr/bin: Permission denied
    here is the make file..(don't have the first clue on making a PKGBUILD)
    #  Copyright (C) 2005-2007 Fons Adriaensen <[email protected]>
    #  This program is free software; you can redistribute it and/or modify
    #  it under the terms of the GNU General Public License as published by
    #  the Free Software Foundation; either version 2 of the License, or
    #  (at your option) any later version.
    #  This program is distributed in the hope that it will be useful,
    #  but WITHOUT ANY WARRANTY; without even the implied warranty of
    #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    #  GNU General Public License for more details.
    #  You should have received a copy of the GNU General Public License
    #  along with this program; if not, write to the Free Software
    #  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    PREFIX = /usr
    SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
    LIBDIR = lib$(SUFFIX)
    DISTDIR = jconv-$(VERSION)
    VERSION = 0.2.0
    LDFLAGS += -L$(PREFIX)/$(LIBDIR)
    CPPFLAGS += -O3 -Wall -MMD -MP -DVERSION=\"$(VERSION)\"
    #CPPFLAGS += -march=i686 -mtune=pentium4 -msse -msse2 -m3dnow -O3 -ffast-math
    # Uncomment if you use a libsndfile version without support for setting/getting the Ambisonic flags.
    CPPFLAGS += -DNOAMBIS=1
    all:    jconv fconv mkwavex
    JCONV_O =    jconv.o config.o jconfig.o jclient.o
    jconv:    LDLIBS += -lzita-convolver -lfftw3f -lsndfile -lclthreads -ljack -lpthread -lrt
    jconv:    $(JCONV_O)
        g++ $(LDFLAGS) -o $@ $(JCONV_O) $(LDLIBS)
    $(JCONV_O):
    -include $(JCONV_O:%.o=%.d)
    FCONV_O =    fconv.o config.o fconfig.o
    fconv:    LDLIBS += -lzita-convolver -lfftw3f -lsndfile -lpthread -lrt
    fconv:    $(FCONV_O)
        g++ $(LDFLAGS) -o $@ $(FCONV_O) $(LDLIBS)
    $(FCONV_O):
    -include $(FCONV_O:%.o=%.d)
    MKWAVEX_O =    mkwavex.o impdata.o
    mkwavex : LDLIBS += -lsndfile -lrt
    mkwavex:    $(MKWAVEX_O)
        g++ $(LDFLAGS) -o $@ $(MKWAVEX_O) $(LDLIBS)
    install:    jconv fconv mkwavex
        /usr/bin/install -m 755 jconv $(PREFIX)/bin
        /usr/bin/install -m 755 fconv $(PREFIX)/bin
        /usr/bin/install -m 755 mkwavex $(PREFIX)/bin
    clean:
        /bin/rm -f *~ *.o *.a *.d *.so jconv fconv
    Last edited by funkmuscle (2008-10-23 21:51:15)

    Thanx Chok. I know that. That's why I'm posting this. This app was make for debian so it's something to do with:
    install:    jconv fconv mkwavex
        /usr/bin/install -m 755 jconv $(PREFIX)/bin
        /usr/bin/install -m 755 fconv $(PREFIX)/bin
        /usr/bin/install -m 755 mkwavex $(PREFIX)/bin
    solved...I removed [/usr/bin/install -m 755] and replaced with [install]
    so it looked like this:
    install $(PREFIX)/bin
    Last edited by funkmuscle (2008-10-23 21:50:26)

  • What does this error message mean and how do I solve it? "Sorry, one or more of the following command-line tools was not found:  /usr/bin/lsbom, /bin/pax, /bin/mkdir, /bin/chmod, or /usr/bin/update_prebinding."

    When I try to open up this program, Pacifist, I receive this error message. Here's a screenshot. http://i.imgur.com/v717w.jpg What does this error message mean and how do I solve it?

    It sounds like some of the Unix Executable commands were removed (or the permissions to those were modified) out of the /usr/bin/ folder.  You can try opening disk utility and repairing permissions on Macintosh HD or you can reboot your computer and holding down option-r when it comes back up to reinstall Lion again.  This will not delete your personal information or applications you have installed but it would be best to back it up to Time Machine before you do.  The article on how to do this is here. (http://www.apple.com/macosx/recovery/)  I have had to do this before and it works like a charm.  It should fix your issue but grab a cup of coffee because its going to take about 35 - 40 minutes depending on how fast your computer is.

  • Where are the settings for the "open" command, located at /usr/bin/open?

    I have Windows XP installed on a partition on my Macbook and I use Parallels to access some of the Windows applications.
    When I am in Mac OS X, and I don't even have a virtual machine running, if I enter the following command in the terminal, I get some really strange behavior:
    /usr/bin/open -a firefox http://localhost/~myname/somewebpage.html
    The open command will launch firefox within Mac OS X and display the page, but, it WILL ALSO TRY TO LAUNCH FIREFOX VIA PARALLELS. So, it starts a Parallels session and tries to launch Firefox. I see the Firefox icon in my dock twice, once normally, and once with the Parallels version of the Firefox icon. But, I cannot view the Parallels instance of Firefox.
    In order to debug this, I removed Firefox from Mac OS X (deleted Firefox.app from my applications folder) and I un-installed it from the windows partition using Add/Remove programs in windows.
    Now, running the open command as stated above launches Safari in Mac OS X and it still launches parrallels.
    Where is the list of application associations that the "open" command uses? I assume there is some incorrect associate that is causing this but, I have no idea how to find it.
    Thanks in advance for any advice you can give.

    Thank you for your reply.
    I actually checked out the man page for "open" but, I was unable to find LaunchServices in the finder. I was hoping there would be some sort of manifest, or application map, within LaunchServices that might be the source of my problem.
    Regarding using the full path: Good suggestion. That will clear it up when I use the command line, or if I were writing my own app, etc...unfortunately, I became aware of this problem because Netbeans is using the command in the abbreviated form I posted above (to launch web applications I am debugging), and I can't edit it.
    I removed Firefox from both Windows and Mac OS X on my machine, and tested the Netbeans functionality, it launched my application in Safari with no errors. I reinstalled Firefox on my Mac OS X partition and selected it in Netbeans preferences as the browser to use when debugging an app. When I tried to debug an application in Netbeans again, I got the same behavior...parallels launched. Ugh.
    There was a folder, on the Windows side of things, called something like Parallels\Shared Applications. It had a shortcut to Firefox in it but, I removed that before doing my testing. I was hoping there would be something similar on the Mac OS X side but, I haven't been able to find anything.
    Thank you both for your help. I think I might need to visit the Parallels forums for this one.

Maybe you are looking for

  • How to make 13 month Fiscal Year Variant

    Current Configuration Fiscal Year Variance u2013 (Dec., - Nov) with 4 Special Periods Current Period Configuration Month     Days     Period     Year Shift 1     31     2     0 2     29     3     0 3     31     4     0 4     30     5     0 5     31  

  • Cx_document_bcs exception in add_attachment method of class cl_document_bcs

    hi All, I am getting an exception  while i am trying to create a  pdf attachment.  I m not getting any error text but error type is showing as  "XERR_BCS".  The code in which the exception is coming is as below. TRY.     lo_document->add_attachment(

  • Why doesn't Facebook fully load in Firefox 28.0 & yet in IE it will?

    Why doesn't Facebook fully load in Firefox 28.0? In Internet Explorer it will.

  • I need to know the application ID for Speech Feedback.

    I have a problem, the speech feedback icon is in my window after I used it for a while. I went to system preferances and turned speech feedback off. The icon did not disappear. I have tried right clicking for options but nothing happened. I also look

  • EM is not running for Oracle 10.2.0.5 on windows 2008 R2

    Hi, Recently, I installed oracle 10.2.0.4 on Windows 2008 R2 server followed by 10.2.0.5 patchset and 8350262 patch (to solve the problem of the expired certificate). After the installation, I created listener and database. The EM was working fine fo