[Novalug] Odd path behavior (kUbuntu 7.10 Gutsy Gibbon)
Mike Shade
mshade at mshade.org
Tue Feb 12 16:31:37 EST 2008
"ssh: ssh-to: Name or service not known"
That is telling you that it can't resolve the hostname, not that the script
isn't executing. Try using an IP address, for example. Or perhaps there's
a syntax error in your script.
-- Mike
On Feb 12, 2008 4:21 PM, Megan Larko <larkoc at iges.org> wrote:
> DonJr wrote:
> > On Tue, 2008-02-12 at 14:37 -0500, Megan Larko wrote:
> >> Hi,
> >>
> >> I'm seeing odd behavior on a new PC running kUbuntu 7.10 Gutsy Gibbon.
> >>
> >> I have FORTRAN source code compiled elsewhere (FC4 box with Absoft
> >> FORTRAN) and I wish to run it on this new box which does not have the
> >> compiler installed. The PC hw is the same. Do I need to install the
> >> Absoft compiler to actually run the executable? Or do I have some
> PATH
> >> or ENV issue? Symptom: OS cannot run compiled executable; it says it
> >> cannot be found. It can list and "file" the file.
> >>
>
> >>
> >> Any ideas?
> >> megan
> >
> > On "Tux Subscriber Dave Aronson" note
> >
> > The one command you didn't try is:
> > ldd --data-relocs par.x
> >
> > ldd - print shared library dependencies
> > --data-relocs
> > Perform relocations and report any missing objects (ELF only).
> >
> > This should show you what shared library (.so) is missing.
>
> Follow-up:
> Greg: I did not compile the program with dynamic libraries but the
> 'file' command shows "dynamically linked". ??? The ldd shows *not* a
> dynamic executable
>
> Dave: The typo was in my email message. I did try to run ssh-to as
> opposed the the misspelling sshto.
>
> The 'ldd' command indicates that the file is not a dynamic executable.
> The 'file" command indicates that the file *is* ELF LSB executable.
>
> larkoc at GMU-CREW:~/ftp.scripts$ pwd
> /home/larkoc/ftp.scripts
> larkoc at GMU-CREW:~/ftp.scripts$ ls -l par.out
> -rwxr-xr-x 1 larkoc larkoc 113611 2008-02-12 14:27 par.out
> larkoc at GMU-CREW:~/ftp.scripts$ file par.out
> par.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
> GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped
> larkoc at GMU-CREW:~/ftp.scripts$ ldd par.out
> not a dynamic executable
> larkoc at GMU-CREW:~/ftp.scripts$ ldd --data-relocs par.out
> not a dynamic executable
> larkoc at GMU-CREW:~/ftp.scripts$ ./par.out
> -bash: ./par.out: No such file or directory
>
> ??? No such file or directory ????
>
> My simpler example:
> larkoc at GMU-CREW:~/megSH$ pwd
> /home/larkoc/megSH
> larkoc at GMU-CREW:~/megSH$ ls -l ssh-to
> -rwxr--r-- 1 larkoc larkoc 132 2008-02-12 14:41 ssh-to
> larkoc at GMU-CREW:~/megSH$ file ssh-to
> ssh-to: POSIX shell script text executable
> larkoc at GMU-CREW:~/megSH$ ldd ssh-to
> not a dynamic executable
> larkoc at GMU-CREW:~/megSH$ ./ssh-to
> ssh: ssh-to: Name or service not known
> larkoc at GMU-CREW:~/megSH$ ./ssh-to crew
> ssh: ssh-to: Name or service not known
>
> megan
> >
> > --
> > DonJr
> >
> >
>
> _______________________________________________
> Novalug mailing list
> Novalug at calypso.tux.org
> http://calypso.tux.org/cgi-bin/mailman/listinfo/novalug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://calypso.tux.org/pipermail/novalug/attachments/20080212/ee6d3cc5/attachment.html
More information about the Novalug
mailing list