[TriLUG] Vexing Command Line problem

Ron Kelley via TriLUG trilug at trilug.org
Tue Jul 31 14:51:21 EDT 2018


Try changing the symlink for python to the full path. Or, call python2 as 
part of your script directly. I suspect the symlink to python is causing 
the problem.

On July 31, 2018 2:44:17 PM Paul Boyle via TriLUG <trilug at trilug.org> wrote:

> Hi,
>
> I have a very basic problem which I am having a heck of a time trying
> to figure. I have several CENTOS 7 boxes which run diffractometer
> control and data processing software. The software runs through a
> variety of scripts, but I've isolated the problem to the
> scripts/programs which are located in /usr/local/bn/bin . This /usr/local/ 
> directory is NFS mounted from
> another Linux box.  I did an update of my CENTOS 7 boxes using yum and
> after the upgrade, one of the Linux boxes can't seem to find the
> executables for the this software.  The basic error is seems to be: no
> such file or directory.
>
> I've verified that the /usr/local/ volume is NFS mounted.  In case it
> helps here are some pasted output from the system:
>
> bruker:/~% bruker_apex &
> [1] 2021
> bruker:/~% env: /usr/local/bn/bin/python: No such file or directory
>
> [1]    Done                          bruker_apex
>
> However, /usr/local/bn/bin/ is there:
>
> bruker:/~% ls -l /usr/local/bn/bin
> total 21156
> -rwxr-xr-x 1 root root    53517 Jan 31 17:13 apng2gif
> -rwxr-xr-x 1 root root   192674 Jan 31 17:13 apngasm
> -rwxr-xr-x 1 root root     7121 Jan 20  2017 bnrun
> -rwxr-xr-x 1 root root    46667 Jan 31 17:13 createdb
> -rwxr-xr-x 1 root root    54934 Jan 31 17:13 createlang
> -rwxr-xr-x 1 root root    47731 Jan 31 17:13 createuser
> -rwxr-xr-x 1 root root    43990 Jan 31 17:13 dropdb
> -rwxr-xr-x 1 root root    54902 Jan 31 17:13 droplang
> -rwxr-xr-x 1 root root    43942 Jan 31 17:13 dropuser
> -rwxr-xr-x 1 root root 12551880 Jan 31 17:13 ffmpeg
> -rwsr-xr-x 1 root root   167426 Jan 31 16:54 FrameGrabber
> -rwxr-xr-x 1 root root    87063 Jan 31 17:13 initdb
> -rwxr-xr-x 1 root root    61769 Jan 31 17:13 pg_basebackup
> -rwxr-xr-x 1 root root    23569 Jan 31 17:13 pg_config
> -rwxr-xr-x 1 root root    23549 Jan 31 17:13 pg_controldata
> -rwxr-xr-x 1 root root    37414 Jan 31 17:13 pg_ctl
> -rwxr-xr-x 1 root root   320195 Jan 31 17:13 pg_dump
> -rwxr-xr-x 1 root root    69482 Jan 31 17:13 pg_dumpall
> -rwxr-xr-x 1 root root    25283 Jan 31 17:13 pg_isready
> -rwxr-xr-x 1 root root    43314 Jan 31 17:13 pg_receivexlog
> -rwxr-xr-x 1 root root    31882 Jan 31 17:13 pg_resetxlog
> -rwxr-xr-x 1 root root   122156 Jan 31 17:13 pg_restore
> -rwxr-xr-x 1 root root  5268471 Jan 31 17:13 postgres
> lrwxrwxrwx 1 root root        8 Jun  5 14:38 postmaster -> postgres
> -rwxr-xr-x 1 root root   403343 Jan 31 17:13 psql
> lrwxrwxrwx 1 root root        7 Jun  5 14:38 python -> python2
> lrwxrwxrwx 1 root root        9 Jun  5 14:38 python2 -> python2.7
> -rwxr-xr-x 1 root root  1629315 Jan 31 17:13 python2.7
> -rwxr-xr-x 1 root root   187720 Jan 31 17:13 qtconfig
> -rwxr-xr-x 1 root root     3187 Jan 20  2017 xmlproc_parse
> -rwxr-xr-x 1 root root     4219 Jan 20  2017 xmlproc_val
> bruker:/~%
>
> The permissions along the path all seem to be OK:
>
> bruker:/~% ls -ld /usr
> drwxr-xr-x. 13 root root 4096 May 15 14:43 /usr
> bruker:/~% ls -ld /usr/local
> drwxr-xr-x 33 root root 4096 Jul 10 13:51 /usr/local
> bruker:/~% ls -ld /usr/local/bn
> drwxr-xr-x 19 root root 4096 Jun  5 14:39 /usr/local/bn
> bruker:/~% ls -ld /usr/local/bn/bin
> drwxr-xr-x 2 root root 4096 Jun  5 14:38 /usr/local/bn/bin
>
> I can try to execute programs using an absolute pathname and still get
> the error.  For example:
>
> bruker:/~% ls -l /usr/local/bn/bin/bnrun
> -rwxr-xr-x 1 root root 7121 Jan 20  2017 /usr/local/bn/bin/bnrun
> bruker:/~% /usr/local/bn/bin/bnrun
> env: /usr/local/bn/bin/python: No such file or directory
> bruker:/~%
>
> There is another Linux box in my lab which is set up similarly (i.e.
> mounts /usr/local/ and runs this software).  Everything still works
> there.  I am all out of ideas about how to solve this problem. Any
> suggestions would be welcome.
>
> Thanks,
>
> Paul
>
> --
> Paul D. Boyle, Ph. D.
> Manager, X-ray Facility
> Department of Chemistry
> Western University
> London, ON N6A 5B7
> Canada
> GPG Fingerprint: 8ECE 516D 9046 FE83 4A46  7E8E D720 555D 8CC3 EC6B
>
>
>
> ----------
> --
> This message was sent to: Ron Kelley <rkelleyrtp at gmail.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that 
> address.
> TriLUG mailing list : https://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web	: 
> https://www.trilug.org/mailman/options/trilug/rkelleyrtp%40gmail.com
> Welcome to TriLUG: https://trilug.org/welcome





More information about the TriLUG mailing list