LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-01-2009, 05:27 AM   #1
mlai023
LQ Newbie
 
Registered: Aug 2009
Posts: 14

Rep: Reputation: 0
Slack 13.0, No such file or directory?


So, I had posted in a previous thread that I was considering going from 12.2 to 13.0-64 Well, I did so on my laptop just to try it out. The installation went smoothly, but I've run into a problem when trying to run Dwarf Fortress.

I see a file, dwarfort.exe When I try to run it:

./dwarfort.exe

I get:

./dwarfort.exe -- No such file or directory

I own the file, and it is marked as executable. I'm not really sure what I should do. I'm going through Alien Bob's multilib guide, and since DF ran fine in 12.2, I'm hoping that it'll run fine once I'm through.

I'm just not sure why I get an error that the file simply doesn't exist rather an error telling me some libraries are missing.
 
Old 09-01-2009, 05:30 AM   #2
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
can you give the output of the command
Code:
ls -l
 
Old 09-01-2009, 01:39 PM   #3
mlai023
LQ Newbie
 
Registered: Aug 2009
Posts: 14

Original Poster
Rep: Reputation: 0
yep:

-rwxr-xr-x 1 myusername users 7570884 2009-08-30 03:57 dwarfort.exe
 
Old 09-01-2009, 01:54 PM   #4
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
Are you typing the command from the same directory that dwarfort.exe is in?

By using the "./" before the command, you're telling the system that the file is in the same directory that you are currently in (PWD). If this is not so, the file won't be found.
Try giving the command without "./"

I'm assuming you have Wine installed if you're executing an .exe file.
 
Old 09-01-2009, 02:04 PM   #5
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
.exe files are normally windows binaries, is this the windows or the linux version? If it is the windows version you have to run it with wine.

samac
 
Old 09-01-2009, 02:22 PM   #6
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 543

Rep: Reputation: 121Reputation: 121
How is wine on 64-bit?
 
Old 09-01-2009, 02:23 PM   #7
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Quote:
How is wine on 64-bit?
Just fine.

samac
 
Old 09-01-2009, 02:31 PM   #8
mlai023
LQ Newbie
 
Registered: Aug 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Yes, I'm in the same directory, and yes, it's a Linux binary despite the .exe ending. In fact, I can run this little script, also in the same directory:

Code:
#!/bin/sh
DF_DIR=$(dirname "$0")
cd "${DF_DIR}"
export SDL_DISABLE_LOCK_KEYS=1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
ldd dwarfort.exe | grep SDL_image | grep -qv "not found$"
if [ $? -q 0]; then
 mkdir unused libs
 mv libs/libSDL* unused_libs/
fi
./dwarfort.exe
and it chokes on the ./dwarfort.exe line with the same error
 
Old 09-01-2009, 02:43 PM   #9
mlai023
LQ Newbie
 
Registered: Aug 2009
Posts: 14

Original Poster
Rep: Reputation: 0
...and by "this little script", I mean, this little script that came bundled with dwarfort.exe in a .zip file named df_linux. So, I'm pretty sure it's not a Windows binary.

If it is an issue, though, no I don't have Wine installed. Thanks! My suspicions are that it's a library issue; I just don't get why I'm getting the "file not found" error message.
 
Old 09-01-2009, 02:46 PM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
My guess is that dwarfort.exe is a 32 bit executable. Check the output of following command :
Code:
file dwarfort.exe
If that is the case, either find a 64 bit executable instead or make your Slackware a multilib one, following this article from Alien BOB
 
Old 09-01-2009, 02:59 PM   #11
mlai023
LQ Newbie
 
Registered: Aug 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Yep, that's the problem. Thanks!
 
Old 09-01-2009, 06:24 PM   #12
mlai023
LQ Newbie
 
Registered: Aug 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Okay, after enabling multilib support, Dwarf Fortress runs, albeit very slowly. This was the case on Slack 12.2 before I installed my NVIDIA drivers, so I guess I'll get to work on that. I should only have to deal with the 64bit drivers, right?

I also get this error:

Code:
mkdir: cannot create directory `unused_libs': File exists
mv: cannot stat `libs/libSDL*': No such file or directory

(dwarfort.exe:10799): Pango-CRITICAL **: No modules found:
No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
  '/etc/pango/pango.modules'
You should create this file by running:
  pango-querymodules > '/etc/pango/pango.modules'

(dwarfort.exe:10799): Pango-WARNING **: failed to find shape engine, expect ugly output. engine-type='PangoRenderFc', script='latin'
Using OpenGL output path with client-side arrays
The contents of ~/df_linux/libs/ are:

libfmodex.so libgcc_s.so.1 libgraphics.so libstdc++.so.6 libtiff.so.4

A quick google search tells me that Pango is used to output international characters. Dwarf Fortress uses a lot of diacritical marks, so I guess it makes sense why Pango gets involved. I created the file pango.modules, but DF still complains.
 
  


Reply



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
mkdir : cannot create directory : no such file or directory patcheezy Linux - Newbie 6 05-13-2009 11:26 AM
Slack 12.2 Upgrade and init: open(/dev/console): No such file or directory xr82 Slackware 2 12-28-2008 04:59 PM
Copying a single file into each directory of a directory tree mlapl1 Linux - Newbie 2 06-27-2007 10:18 PM
How to untar a file in another directory other then current directory. dr_zayus69 Linux - Software 8 05-16-2007 11:01 AM
How to protect a file/directory in your home login directory (RH Linux) jitsenho Linux - Security 9 07-03-2006 11:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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