Linux Difficulties

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

Post Reply
001234
New Member
Posts: 7
Joined: Sun Jun 11, 2006 12:54 am

Linux Difficulties

Post by 001234 »

I've been trying to install ZSNES on my linux partition. Unfortunately, when I enter:

linux:/windows/C/zsnes/Zsnes v1.42/src # sh ./autogen.sh && gmake && gmake install

I get this:

Generating build information using aclocal and autoconf...
./autogen.sh: ./configure: /bin/sh: bad interpreter: Permission denied

I've got
SDL 1.2.7-1,
NASM .98-1,
zlib 1.1.4-225,
and libpng 1.2.5-194

I'm also logged in as root using Suse Linux 9.0.

Anyone have an idea as to why it's not working?
adventure_of_link
Locksmith of Hyrule
Posts: 3634
Joined: Sun Aug 08, 2004 7:49 am
Location: 255.255.255.255
Contact:

Post by adventure_of_link »

Try taking out the sh before the ./autogen.sh

Also, what shell are you using ?
<Nach> so why don't the two of you get your own room and leave us alone with this stupidity of yours?
NSRT here.
001234
New Member
Posts: 7
Joined: Sun Jun 11, 2006 12:54 am

Post by 001234 »

I took out the first "sh" and the result was very similar:

linux:/windows/C/zsnes/Zsnes_v1.42/src # ./autogen.sh && gmake && gmake install
bash: ./autogen.sh: /bin/sh: bad interpreter: Permission denied

The only difference is the lack of "Generating build information using aclocal and autoconf...".

The shell I'm using is
Konsole 1.2.3 (Using KDE 3.1.4)
adventure_of_link
Locksmith of Hyrule
Posts: 3634
Joined: Sun Aug 08, 2004 7:49 am
Location: 255.255.255.255
Contact:

Post by adventure_of_link »

no, I meant if you're using bsh, sh, BASH, etc.

However, from that output you just gave, you're using bash.

Hmm... try just ./autogen.sh

then gmake

then gmake install

also, compile ZSNES as a regular user.
<Nach> so why don't the two of you get your own room and leave us alone with this stupidity of yours?
NSRT here.
001234
New Member
Posts: 7
Joined: Sun Jun 11, 2006 12:54 am

Post by 001234 »

It's stopping at the first step. Makes me wonder whether that interpreter had a harsh upbringing.

odin@linux:/windows/C/zsnes/zsnes_v1.42/src> ./autogen.sh
bash: ./autogen.sh: /bin/sh: bad interpreter: Permission denied
adventure_of_link
Locksmith of Hyrule
Posts: 3634
Joined: Sun Aug 08, 2004 7:49 am
Location: 255.255.255.255
Contact:

Post by adventure_of_link »

Hmm.. do you even have Automake and make installed ?
<Nach> so why don't the two of you get your own room and leave us alone with this stupidity of yours?
NSRT here.
001234
New Member
Posts: 7
Joined: Sun Jun 11, 2006 12:54 am

Post by 001234 »

Yup, I've got
Automake 1.7.6-41
BRPXQZME
Hazed
Posts: 54
Joined: Tue May 30, 2006 3:47 am
Location: Centreville, VA
Contact:

Re: Linux Difficulties

Post by BRPXQZME »

001234 wrote:on my linux partition.

...

linux:/windows/C/zsnes/Zsnes v1.42/src
uMM?? :wink:

Anyways, did you try, say, bash autogen.sh? Probably wouldn't make a difference, but hey.
adventure_of_link
Locksmith of Hyrule
Posts: 3634
Joined: Sun Aug 08, 2004 7:49 am
Location: 255.255.255.255
Contact:

Re: Linux Difficulties

Post by adventure_of_link »

BRPXQZME wrote:
001234 wrote:on my linux partition.

...

linux:/windows/C/zsnes/Zsnes v1.42/src
uMM?? :wink:

Anyways, did you try, say, bash autogen.sh? Probably wouldn't make a difference, but hey.
That's how windows partitions are setup in ELX Linux as well.
<Nach> so why don't the two of you get your own room and leave us alone with this stupidity of yours?
NSRT here.
BRPXQZME
Hazed
Posts: 54
Joined: Tue May 30, 2006 3:47 am
Location: Centreville, VA
Contact:

Post by BRPXQZME »

Basically, doing anything remotely UNIX-y on a windows partition can make certain things sneeze; "permissions" as Linux knows them don't exist in Windows, and they don't exist on the partition either. Please do try putting the source in your home or /tmp ...

(This might fix it, as a Windows partition, surprise surprise, is probably mounted noexec by default)
bztunk
Hazed
Posts: 84
Joined: Mon Dec 27, 2004 9:08 pm
Location: In A.D. 2101, war was beginning.

Post by bztunk »

BRPXQZME wrote:Basically, doing anything remotely UNIX-y on a windows partition can make certain things sneeze; "permissions" as Linux knows them don't exist in Windows, and they don't exist on the partition either. Please do try putting the source in your home or /tmp ...

(This might fix it, as a Windows partition, surprise surprise, is probably mounted noexec by default)
I think it has more to do with permissions... i don't remember the default fmask tho.
16:13 <Link`sAdventure> If I had my choice between Fedora and Windows, I'd pick windows.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

You won't be able to run ./configure unless you get it's X bit set.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
001234
New Member
Posts: 7
Joined: Sun Jun 11, 2006 12:54 am

Post by 001234 »

Allright, I cut and pasted my zsnes folder from windows/c/ to home/Documents/ (I had figured that since I had never named a folder "windows" while in Windows, then it must be part of linux--I run MS Windows off of my D drive...bah).

There is a slight improvement...it now gets an error at the "gmake" step. I've tried them together and seperately and the errors are identical either way. Here's the output:

odin@linux:~/Documents/zsnes/Zsnes_v1.42/src> sh ./autogen.sh && gmake && gmake install
Generating build information using aclocal and autoconf...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for nasm... nasm
checking for a BSD-compatible install... /usr/bin/install -c
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for zlib - version >= 1.1.0... yes
checking for libpng - version >= 1.2.0... yes
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for glGetError in -lGL... yes
checking for OpenGL... yes
checking if you want gdb friendly executable... no
checking which processor class to optimize for... 686
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether sys/types.h defines makedev... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged


ZSNES v1.42

SDL support Version 1.2.7
NASM support NASM version 0.98
ZLib support Version 1.1.4
PNG support (png screenshots) Yes, version 1.2.5
OpenGL support Yes

The binary will be installed in /usr/local/bin

Configure complete, now type 'make' and pray.

nasm -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -O1 -o chips/sfxproc.o chips/sfxproc.asm
nasm: unrecognised option `-O'
type `nasm -h' for help
gmake: *** [chips/sfxproc.o] Error 1


Any guesses on this one? Is there maybe a "0" and an "O" swapped somewhere?
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Get a new version of NASM.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
001234
New Member
Posts: 7
Joined: Sun Jun 11, 2006 12:54 am

Post by 001234 »

I now have NASM 0.98.39-1.

The error has changed again. Progress. Here's the output again:

odin@linux:~/Documents/zsnes/Zsnes_v1.42/src> sh ./autogen.sh && gmake && gmake
install
Generating build information using aclocal and autoconf...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for nasm... nasm
checking for a BSD-compatible install... /usr/bin/install -c
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for zlib - version >= 1.1.0... yes
checking for libpng - version >= 1.2.0... yes
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for glGetError in -lGL... yes
checking for OpenGL... yes
checking if you want gdb friendly executable... no
checking which processor class to optimize for... 686
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether sys/types.h defines makedev... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged


ZSNES v1.42

SDL support Version 1.2.7
NASM support NASM version 0.98.39 compiled on Jan 15 2005
ZLib support Version 1.1.4
PNG support (png screenshots) Yes, version 1.2.5
OpenGL support Yes

The binary will be installed in /usr/local/bin

Configure complete, now type 'make' and pray.

nasm -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -O1 -o chips/sfxpro c.o chips/sfxproc.asm
nasm -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -O1 -o chips/fxemu2 .o chips/fxemu2.asm
nasm -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -O1 -o chips/dsp1pr oc.o chips/dsp1proc.asm
nasm -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -O1 -o chips/fxemu2 b.o chips/fxemu2b.asm
nasm -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -O1 -o chips/fxemu2 c.o chips/fxemu2c.asm
nasm -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -O1 -o chips/fxtabl e.o chips/fxtable.asm
nasm -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -O1 -o chips/sa1pro c.o chips/sa1proc.asm
nasm -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -O1 -o chips/sa1reg s.o chips/sa1regs.asm
gcc -pipe -I. -Wall -I/usr/local/include -I/usr/include -D__LINUX__ -I/usr/inc lude/SDL -D_REENTRANT -D__OPENGL__ -O3 -ffast-math -fomit-frame-pointer -fexpen sive-optimizations -s -march=pentiumpro -o chips/dsp1emu.o -c chips/dsp1emu.c
In file included from chips/dsp1emu.c:27:
gblhdr.h:85:27: GL/gl.h: No such file or directory
gmake: *** [chips/dsp1emu.o] Error 1
paulguy
Zealot
Posts: 1076
Joined: Sat Jul 02, 2005 2:01 am
Contact:

Post by paulguy »

if you have an ati or nvidia card (or some other card where there's opengl support for linux) install the drivers for that. otherwise ./autogen.sh --help should tell you how to disable opengl.
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

Consider using the latest SVN version instead of the official version...
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
001234
New Member
Posts: 7
Joined: Sun Jun 11, 2006 12:54 am

Post by 001234 »

Sucess!

The suggestion by paulguy to disable opengl worked. After I did that, gmake worked fine. On the other hand, gmake install gave me a permission denied error about some directory (usr/local/bin or something) so I logged in as root again and it worked.

Now I just have to copy my .smc files from windows and tweak my crappy chinese CMI8738 knock-off that Yast seems to hate (but it only cost like $8 for a 5.1 surround card). Even without sound though, it'll be fun to use zsnes in Linux.

Thanks to everyone who took the time to aid my blundering through the linux jungle.
Post Reply