LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   very unusual PATH problems with Slackware64-13.0: No such file or directory (http://www.linuxquestions.org/questions/slackware-14/very-unusual-path-problems-with-slackware64-13-0-no-such-file-or-directory-803425/)

hucphin 04-21-2010 10:01 PM

very unusual PATH problems with Slackware64-13.0: No such file or directory
 
Hey Slackers,

Gee, I am a little embarassed to ask this question, but I just don't know what the issue is. I am working on getting my software packages installed on my fresh Slackware64-13.0 installation. Some (but definitely not all) of my executables are unable to be run.

I understand what PATH is for. It is for locating files, folders, executables in those directories when running from a Terminal window.

So, for example, I have just installed Cisco VPN Client for Linux, and it is the strangest thing. I should have access to this. I must not be understanding something here. Does anyone have any idea why this is not working for me? I have put in an example of what I am talking about. I have no idea why this is not working, and it is frustrating.

huckphin@slackbox:/opt/cisco/vpn/bin$ whoami
huckphin
huckphin@slackbox:/opt/cisco/vpn/bin$ pwd
/opt/cisco/vpn/bin
huckphin@slackbox:/opt/cisco/vpn/bin$ echo $PATH
/home/huckphin/chrome/depot_tools:/usr/local/bin:/usr/bin/:/bin:/usr/games:/usr/lib64/java/bin:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin:/opt/cisco/vpn/bin/
huckphin@slackbox:/opt/cisco/vpn/bin$ whereis vpnclient
vpnclient: /usr/local/bin/vpnclient /opt/cisco-vpnclient/bin/vpnclient
huckphin@slackbox:/opt/cisco/vpn/bin$ ls -l
total 9328
-rwxr-xr-x 1 root root 807296 2010-04-20 23:36 manifesttool
-rwxr-xr-x 1 root root 2330376 2010-04-20 23:36 vpn
-rwxr-xr-x 1 root root 4748 2010-04-20 23:36 vpn_uninstall.sh
-rwsr-xr-x 1 root root 1719832 2010-04-20 23:36 vpnagentd
-rwxr-xr-x 1 root root 2206996 2010-04-20 23:36 vpndownloader
-r--r--r-- 1 root root 75 2010-04-20 23:36 vpndownloader.sh
-rwxr-xr-x 1 root root 2467500 2010-04-20 23:36 vpnui
huckphin@slackbox:/opt/cisco/vpn/bin$ vpnclient
bash: /usr/local/bin/vpnclient: No such file or directory
huckphin@slackbox:/opt/cisco/vpn/bin$

Richard Cranium 04-21-2010 10:08 PM

What does...
Code:

hash
type vpnclient

...give you?

T3slider 04-21-2010 10:15 PM

Since it's trying to grab /usr/local/bin/vpnclient, what is the output of
Code:

$ file /usr/local/bin/vpnclient
You say Slackware64-13.0. Is it a 32-bit executable or 64-bit? If 32-bit then you need multilib working properly (or get a 64-bit copy if it exists).

hucphin 04-22-2010 11:19 AM

Hi T3slider, Here is a result of the file command.

Code:

bash-3.1$ file /usr/local/bin/vpnclient
/usr/local/bin/vpnclient: symbolic link to `/opt/cisco-vpnclient/bin/vpnclient'
bash-3.1$ file /opt/cisco-vpnclient/bin/vpnclient
/opt/cisco-vpnclient/bin/vpnclient: executable, regular file, no read permission
bash-3.1$ su
Password:
bash-3.1# file /opt/cisco-vpnclient/bin/vpnclient
/opt/cisco-vpnclient/bin/vpnclient: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped


hucphin 04-22-2010 11:21 AM

Hi Richard,

Here is a result of running hash; type vpnclient

Code:

bash-3.1# hash
hits        command
  1        /usr/bin/file
bash-3.1# type vpnclient
vpnclient is /usr/local/bin/vpnclient


Richard Cranium 04-22-2010 11:55 AM

If /usr/local/bin/vpnclient is a script, then the message may be coming from within the script where it isn't finding a file.

adamk75 04-22-2010 01:22 PM

You're running Slackware64, yet the vpnclient is a 32-bit program. Did you make your system multilib?

Adam

hucphin 04-22-2010 08:25 PM

No, I did not make it multilib. By that do you mean do I have 32-bit libraries as well? I am not sure on how I can make it multilib. But, you know what? What you say makes a lot of sense.

I found this resource online from Alien Pastures: http://alien.slackbook.org/blog/multilib-slackware64/ In this article about multilib-slackware64, Eric Hameleers explains that Pat Volkerding wanted a pure 64-bit Operating System. IMHO I think that it is great to push software to be 64-bit supported, but when software is not made for 64-bit, it just frustrates us. That's OK, though. Being a Slacker, I feel like I have always been ahead of the curve!

Even still, some programs that I live by are not available in 64-bit that I would enjoy. Maybe I should take the initiative and get the 64-bit versions available for the programs I need! These include Thunderbird 3 (for work, I cannot live without my calendaring system), and Cisco VPN Client (I need to VPN into work). I am also running into issues running both pidgin and pidgin-otr (although, I think that this is related to gnutls as far as I can tell from the debugging.). These programs are vital to my productivity at work, and are a real pain that they are not working.

In the blog entry, Eric has a link to the instructions to make Slackware64 multilib-compatibile. I will try this out, and see if it works. Hopefully, I'll be able to finish this up tonight yet. We'll see. Here's the link for the instructions: http://alien.slackbook.org/dokuwiki/...kware:multilib

~Huck

Richard Cranium 04-22-2010 08:49 PM

Do you have a server that you log into within your corporate firewall? If so (and ssh is available there), you could run a 32 bit Slax image under qemu, open the VPN there, log into work, and then reverse tunnel onto your local machine.

hucphin 04-22-2010 09:13 PM

Hi Richard,

Sadly, at the moment, I only have this laptop for work. Thank you for the suggestion, though. Maybe I should see about getting a server in the lab!

~Huck


All times are GMT -5. The time now is 08:26 PM.