Linux Difficulties
Moderator: ZSNES Mods
Linux Difficulties
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?
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?
-
- Locksmith of Hyrule
- Posts: 3634
- Joined: Sun Aug 08, 2004 7:49 am
- Location: 255.255.255.255
- Contact:
Try taking out the sh before the ./autogen.sh
Also, what shell are you using ?
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.
NSRT here.
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)
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)
-
- Locksmith of Hyrule
- Posts: 3634
- Joined: Sun Aug 08, 2004 7:49 am
- Location: 255.255.255.255
- Contact:
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.
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.
NSRT here.
-
- Locksmith of Hyrule
- Posts: 3634
- Joined: Sun Aug 08, 2004 7:49 am
- Location: 255.255.255.255
- Contact:
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.
NSRT here.
Re: Linux Difficulties
uMM??001234 wrote:on my linux partition.
...
linux:/windows/C/zsnes/Zsnes v1.42/src

Anyways, did you try, say, bash autogen.sh? Probably wouldn't make a difference, but hey.
-
- Locksmith of Hyrule
- Posts: 3634
- Joined: Sun Aug 08, 2004 7:49 am
- Location: 255.255.255.255
- Contact:
Re: Linux Difficulties
That's how windows partitions are setup in ELX Linux as well.BRPXQZME wrote:uMM??001234 wrote:on my linux partition.
...
linux:/windows/C/zsnes/Zsnes v1.42/src![]()
Anyways, did you try, say, bash autogen.sh? Probably wouldn't make a difference, but hey.
<Nach> so why don't the two of you get your own room and leave us alone with this stupidity of yours?
NSRT here.
NSRT here.
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)
(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.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)
16:13 <Link`sAdventure> If I had my choice between Fedora and Windows, I'd pick windows.
-
- ZSNES Developer
- Posts: 3904
- Joined: Tue Jul 27, 2004 10:54 pm
- Location: Solar powered park bench
- Contact:
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
_____________
Insane Coding
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?
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?
-
- ZSNES Developer
- Posts: 3904
- Joined: Tue Jul 27, 2004 10:54 pm
- Location: Solar powered park bench
- Contact:
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
_____________
Insane Coding
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
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
-
- ZSNES Developer
- Posts: 6747
- Joined: Tue Dec 28, 2004 6:47 am
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.
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.