XPost: uk.comp.os.linux   
   From: java@evij.com.invalid   
      
   Thanks to both Richard and Theo ...   
      
   On 2025-04-20 10:08, Theo wrote:   
   >   
   > In uk.comp.os.linux Java Jive wrote:   
   >>   
   >> [USER@NASNAME ~]# gcc --version   
   >> -sh: /share/CACHEDEV1_DATA/.qpkg/Entware/bin/gcc: No such file or directory   
   >>   
   >> [USER@NASNAME ~]# make --version   
   >> -sh: /share/CACHEDEV1_DATA/.qpkg/Entware/bin/make: No such file or directory   
   >>   
   >> Note that the directory listing and the uname output show that the   
   >> hardware objective coding of the development utilities is correct for   
   >> the hardware, and I can't think of any other reason why the utilities   
   >> won't run. Any ideas anyone?   
   >   
   > As Richard says, 'no such file or directory' when running a binary usually   
   > means either the binary format is not supported (eg trying to run Arm   
   > binaries on x86)   
      
   Not the case here.   
      
   > or some shared library is missing which means the dynamic   
   > linker is not able to start the program.   
      
   Think this or something similar must be the answer ...   
      
   By default, there is no LD_LIBRARY_PATH variable defined, so, as a first   
   attempt, I edited /etc/profile to add the various lib* sub-directories   
   of the various optional add-ons to a LD_LIBRARY_PATH variable, but,   
   after a reboot, running any of the normal shell commands resulted in   
   segmentation faults, but when I entered into the shell ...   
    unset LD_LIBRARY_PATH   
   ... everything worked again.   
      
   > Try 'ldd /share/CACHEDEV1_DATA/.qpkg/Entware/bin/gcc'. It should show you   
   > the dynamic libraries that it is asking for. eg:   
      
   [USER@NASNAME ~]# ldd /share/CACHEDEV1_DATA/.qpkg/Entware/bin/make   
   /sbin/ldd: line 117: /share/CACHEDEV1_DATA/.qpkg/Entware/bin/make: No   
   such file or directory   
      
   > Note that if this is compiled for a different distro (eg Ubuntu) it's   
   > possible it's built for shared libraries with different versions/options   
   > than you have on your system. To get it to run you may have to copy the   
   > shared libraries from Ubuntu and add that directory to your LD_LIBRARY_PATH   
   > so the dynamic linker finds them in advance of the system libraries.   
      
   Yes, it's a pain. I need a working make program to use CPAN in Perl,   
   but cannot make any easy progress, but thanks for your and Richard's   
   help and suggestions.   
      
   --   
      
   Fake news kills!   
      
   I may be contacted via the contact address given on my website:   
   www.macfh.co.uk   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|