LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-07-2010, 10:35 PM   #1
Lolwhut
LQ Newbie
 
Registered: Feb 2010
Posts: 10

Rep: Reputation: 0
Error when trying to run wine: "/usr/bin/wine: No such file or directory"


Hello, I have a fresh install of Slackware 13 AMD64 (also installed slapt-get, changed passwords, set default wm to xfce, etc..), and today I tried to install the Slackware port of Wine from WineHQ.org, and the install succeeded. When I tried to run it
Code:
wine
It returned
Code:
/usr/bin/wine: No such file or directory
I am not sure why this is happening, as it worked on my 32-bit systems. My $PATH variable is this:
Code:
bash-3.1# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
Thank you, and any help would be greatly appreciated. If needed, here is what was shown while installing wine:
Code:
bash-3.1# installpkg wine-1.1.29-i486-1kjz.tgz 
Verifying package wine-1.1.29-i486-1kjz.tgz.
Installing package wine-1.1.29-i486-1kjz.tgz:
PACKAGE DESCRIPTION:
# WINE - Wine Is Not an Emulator
#
# Wine is an Open Source implementation of the Windows API on top of
# X and Unix; it is a compatibility layer for running Windows programs.
# Wine does not require Microsoft Windows, as it is a completely free
# alternative implementation of the Windows API.  However, Wine can
# optionally use native Windows DLLs if they are available.  Wine
# provides both a development toolkit for porting Windows source code
# to Unix, as well as a program loader to run Windows applications.
# Homepage: http://www.winehq.com/
# Packaged by Ken Zalewski (kennyz@nycap.rr.com)

Executing install script for wine-1.1.29-i486-1kjz.tgz.
Package wine-1.1.29-i486-1kjz.tgz installed.
Also, all the files are there. They are just not being recognized. "ls /usr/bin/wine*" shows the files are there.

Code:
bash-3.1$ ls /usr/bin/wine*
/usr/bin/wine		 /usr/bin/winecpp   /usr/bin/winemaker
/usr/bin/wine-preloader  /usr/bin/winedbg   /usr/bin/winemine
/usr/bin/wineboot	 /usr/bin/winedump  /usr/bin/winepath
/usr/bin/winebuild	 /usr/bin/winefile  /usr/bin/wineprefixcreate
/usr/bin/winecfg	 /usr/bin/wineg++   /usr/bin/wineserver
/usr/bin/wineconsole	 /usr/bin/winegcc

Last edited by Lolwhut; 02-07-2010 at 10:52 PM.
 
Old 02-08-2010, 03:30 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Just be aware there is no dependency checking in slackware. Are all the dependencies installed? Try this:
cd /usr/bin && ldd wine
Check if all the libs are in sight. Also run winecfg. It needs a configuration to start. It finds your disk, you set basic options about how it plays with your hardware, and which version of windows it pretends to be.
 
Old 02-08-2010, 10:02 AM   #3
Lolwhut
LQ Newbie
 
Registered: Feb 2010
Posts: 10

Original Poster
Rep: Reputation: 0
I tried to run "ldd wine" but it returned:
Code:
bash-3.1# cd /usr/bin && ldd wine
                   not a dynamic executable
I did chmod +x on all of them aswell, but it did not change anything. Also, if I try to run winecfg, it returns:
Code:
line 29: /usr/bin/wine: No such file or directory
line 29: /usr/bin/wine: Success
 
Old 02-08-2010, 06:50 PM   #4
Lolwhut
LQ Newbie
 
Registered: Feb 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Might building wine on the actual system fix this? Or will it be the same as installing the wine package.
 
Old 02-09-2010, 06:28 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
I'm on slamd64-12.2 (=64 bit slackware before there was one, if you get me).
Code:
bash-3.1$ ldd /usr/bin/wine
	linux-gate.so.1 =>  (0xf7f41000)
	libwine.so.1 => /usr/lib/libwine.so.1 (0xf7e05000)
	libpthread.so.0 => /lib/libpthread.so.0 (0xf7dee000)
	libc.so.6 => /lib/libc.so.6 (0xf7ca1000)
	libdl.so.2 => /lib/libdl.so.2 (0xf7c9d000)
	/lib/ld-linux.so.2 (0xf7f42000)
Try ls -l /usr/bin/wine.
It might be a symlink to /opt/somewhere/wine or the like. This seems like your problem. Follow this to the executable, and try ldd on that.
 
Old 02-09-2010, 08:42 AM   #6
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware-15.0; -current
Posts: 245

Rep: Reputation: 60
Try running these commands:
Code:
ls /var/log/packages/ | grep wine
..to find the full package name.
Then:
Code:
less /var/log/packages/[full package name]
..to see all the files that were installed.
That should show you the path to the wine executable. If it's somewhere in /opt you might need to add it to your $PATH variable. If it's in /usr/local/bin it should be in your $PATH. Run 'echo $PATH' to be sure...
 
Old 02-09-2010, 06:08 PM   #7
Lolwhut
LQ Newbie
 
Registered: Feb 2010
Posts: 10

Original Poster
Rep: Reputation: 0
I do believe I have found what I need to do. I need to set up a multilib environment if I am reading correctly. I will edit this post if I succeed.
 
1 members found this post helpful.
Old 05-11-2010, 09:30 AM   #8
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Rep: Reputation: 36
I have this same problem. I am running Slackware 13 64-bit, and installed their txz package from sourceforge.

Quote:
bash-3.1$ stat /usr/bin/wine
File: `/usr/bin/wine'
Size: 7096 Blocks: 16 IO Block: 4096 regular file
Device: 801h/2049d Inode: 267024 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2010-05-11 10:00:05.612861294 -0400
Modify: 2010-04-19 11:21:36.000000000 -0400
Change: 2010-04-29 16:51:11.443962845 -0400
bash-3.1$ /usr/bin/wine
bash: /usr/bin/wine: No such file or directory
 
Old 05-12-2010, 04:21 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Brief 32/64 bit howto.

Except for Debian & clones, 32bit = /usr/lib, /usr/local/lib, etc
64bit = /usr/lib64
Debian uses /usr/lib32 & /usr/lib respectively.
Wine is usually compiled 32 bit, and needs/uses 32 bit libs, because windows programs in the main are 32 bit
 
1 members found this post helpful.
Old 08-20-2016, 04:10 AM   #10
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Code:
bash: /usr/bin/wine: No such file or directory
i run a 64bit Slackware with AlineBOB's multilib and compat32 packages

Everything worked just like a charm
All of sudden wine started spewing the above message ???

All searches for Slackware lead to unsolved threads, how come?

so i fiddled a while and found that regular system update broke my multilib (wine64 worked FWIW)

all i had to do is to seek the multilib packages (i use gslapt on top of slapt-get)

I found they where not installed anymore?

After installing them back, i got wine run 32bit again

No wonder it wouldn't

So this thread can be taged as [SOLVED] (it took a while though)
 
  


Reply

Tags
amd64, path, slackware13, wine



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"bash: /usr/bin/git: No such file or directory " - why does bash look in /usr/bin babu198649 Linux - Newbie 9 04-24-2023 01:32 PM
script using "/usr/bin/cat error" produces "cannot open" in cron Dcrusoe Programming 6 07-22-2009 03:30 PM
"/usr/bin/ls: reading directory .: Input/output error" DiZi Slackware 15 07-13-2008 10:03 AM
Wine hangs on "wine: creating configuration directory" ttnunam Linux - Software 9 12-10-2006 02:02 AM
Error in man command "sh: line 1: /usr/bin/gtbl: No such file or directory" MinA Slackware 1 09-06-2004 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration