How does one install zsnes 1_51 on Fedora 7 Linux?

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

Moderator: ZSNES Mods

yoshisaur
Rookie
Posts: 31
Joined: Sat Aug 18, 2007 9:22 pm

How does one install zsnes 1_51 on Fedora 7 Linux?

Post by yoshisaur »

Hey I am moving to Fedora 7 Linux and I am having trouble installing zsnes 1.51.
I followed the directions in the html manual but when I try them I get this message in the terminal. By the way I starred out my name.
[****@localhost Desktop]$ cd zsnes_1_51
[****@localhost zsnes_1_51]$ cd src
[****@localhost src]$ ./configure --enable-release
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 a BSD-compatible install... /usr/bin/install -c
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

I am new to Linux so I have no idea what any of these messages mean. If someone can help me it would be greatly appreciated. Thanks!
PS I did check the install.txt and the faq board but they only give information on svn.
ardnew
Rookie
Posts: 13
Joined: Thu Oct 06, 2005 7:18 am

Post by ardnew »

You need to install a compiler. Try this:

Code: Select all

[****@localhost ~]$ sudo yum install gcc gcc-c++
yoshisaur
Rookie
Posts: 31
Joined: Sat Aug 18, 2007 9:22 pm

Post by yoshisaur »

This did not work
[****@localhost src]$ sudo yum install gcc gcc-c++
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
Sorry, try again.
sudo: 3 incorrect password attempts
[****@localhost src]$

Any other ideas?
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

You need root/admin access to execute that command.

Anyways, you do need to install the compiler (gcc) and the required libs.

I suggest you read install.txt in the docs folder of the source.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
yoshisaur
Rookie
Posts: 31
Joined: Sat Aug 18, 2007 9:22 pm

Post by yoshisaur »

Deathlike2 wrote:You need root/admin access to execute that command.

Anyways, you do need to install the compiler (gcc) and the required libs.

I suggest you read install.txt in the docs folder of the source.
I read install.txt but it only mentions DOS Windows and SDL zsnes, not Linux.
Anyway I used the su command and got the things but when I tried to install it again I got this message:

[root@localhost src]# ./configure --enable-release
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 a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... 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 ISO C89... 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... no
configure: error: You need NASM installed to compile ZSNES
[root@localhost src]# yum install NASM
Setting up Install Process
Parsing package install arguments
Nothing to do
[root@localhost src]#

Apparently I need to get NASM, I tried getting it with the yum install like I did with the gcc and gcc-c++ but it just says 'Nothing to do'. Anyone know how to get NASM?
yoshisaur
Rookie
Posts: 31
Joined: Sat Aug 18, 2007 9:22 pm

Post by yoshisaur »

Hold on apparently SDL and Linux are the same thing: I will follow the instructions written in the install.txt file and get back to you if I still have trouble.
ardnew
Rookie
Posts: 13
Joined: Thu Oct 06, 2005 7:18 am

Post by ardnew »

I read install.txt but it only mentions DOS Windows and SDL zsnes, not Linux.
SDL ZSNES is the Linux version of ZSNES. This is what you should read.

NASM probably won't be the last thing you'll need to get.

From the install.txt:
Linux/SDL/POSIX port:
I assume the standard development tools are installed (gcc, make, ...)
You'll also need :
- SDL (Simple DirectMedia Layer) : check www.libsdl.org to grab SDL 1.2.0 or
later. If you are using rpm packages, don't
forget the -devel package.
- NASM v0.98.39 : http://nasm.sf.net/
- zlib v1.2.3 or higher : http://www.zlib.net
it is probably already installed on your
system, maybe you are just missing the
development headers. Check in the
packages available with your distribution
or go to the page above
- libpng : http://www.libpng.org/
You might also need libpng, ZSNES will compile without
PNG support but I have found doing so to make ZSNES
unstable for some weird reason. If you don't have
libpng, either get it and install it or pass the
--without-png option to the 'configure' script.
- Curses/NCurses
Check your distro. One of these is needed if you compile with
the debugger enabled. You may also have to symlink ncurses.h
to curses.h in your include directory.

Then to build the executable, go to the src directory and type:
sh ./autogen.sh && gmake && gmake install

Note: This only covers SVN/WIP builds, for releases see instructions below.

Note: autogen.sh requires automake and autoconf installed. Any parse errors
you recieve about configure.in are due to those not being installed.

Note: you require root to install zsnes to the the default (/usr/local/*)
directory

Also Note: libpng (optional) needs to be recent, or zsnes will not use it

You may also want to compress the zsnes executable with upx
(http://upx.sourceforge.net), it will divide its size by 10.
yoshisaur
Rookie
Posts: 31
Joined: Sat Aug 18, 2007 9:22 pm

Post by yoshisaur »

Okay guys I got NASM from the website, so then I moved onto www.libsdl.org I went to where it says "developmental libraries" and clicked the http://www.libsdl.org/release/SDL-devel ... 1.i386.rpm and used software installer to install it. Upon trying to install zsnes again I got this message.

[root@localhost src]# ./configure --enable-release
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 a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... 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 ISO C89... 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 sdl-config... no
checking for SDL - version >= 1.2.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: error: SDL >= 1.2.0 is required

Do I have to look for a seperate SDL 1.2.0?
Also I went to zlib.net and I cannot find any rpm's, can anyone help?
yoshisaur
Rookie
Posts: 31
Joined: Sat Aug 18, 2007 9:22 pm

Post by yoshisaur »

I have also tried getting the SDL runtime libraries but when I try to install them it says that it is already installed when I only got the developmental libraries. Any answers?
ardnew
Rookie
Posts: 13
Joined: Thu Oct 06, 2005 7:18 am

Post by ardnew »

Sorry, I'm not very familiar with Fedora.

Check to see if you really did get sdl-config installed:

Code: Select all

[root@localhost src]# find / -name "sdl-config" -type f
If it finds something, rerun ./configure with:

Code: Select all

[root@localhost src]# SDL_CONFIG=/usr/local/bin/sdl-config ./configure --enable-release
Replace "/usr/local/bin/sdl-config" with the resulting path from the above find command.
yoshisaur
Rookie
Posts: 31
Joined: Sat Aug 18, 2007 9:22 pm

Post by yoshisaur »

Sorry that did not help. But by restarting Linux going to SDL and downloading the library to my Destktop, I was able to install it, but now it says I am missing zlib. Like I mentioned earlier, I went to the website but I could not find any rpms. If you know where to get them that would be appreciated thanks.
ardnew
Rookie
Posts: 13
Joined: Thu Oct 06, 2005 7:18 am

Post by ardnew »

Code: Select all

# yum install zlib zlib-devel
yoshisaur
Rookie
Posts: 31
Joined: Sat Aug 18, 2007 9:22 pm

Post by yoshisaur »

Do you know how to get the libpng RPM?
yoshisaur
Rookie
Posts: 31
Joined: Sat Aug 18, 2007 9:22 pm

Post by yoshisaur »

I also need an RPM for curses because the install.txt does not even give a website url for that.
yoshisaur
Rookie
Posts: 31
Joined: Sat Aug 18, 2007 9:22 pm

Post by yoshisaur »

Actually I do not want to use the debugger but whenever I want to install zsnes I get this message in my output.

[root@localhost src]# ./configure --enable-release
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 a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... 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 ISO C89... 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 sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for zlib - version >= 1.2.3... yes
checking for libpng - version >= 1.2.0... no
rm: cannot remove `conf.libpngtest': No such file or directory
checking if you want the zsnes debugger... yes
checking for initscr in -lcurses... no
checking for initscr in -lncurses... no
checking for initscr in -lpdcurses... no
configure: error: A curses library is required to use the debugger
[root@localhost src]# ./configure
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 a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... 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 ISO C89... 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 sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for zlib - version >= 1.2.3... yes
checking for libpng - version >= 1.2.0... no
rm: cannot remove `conf.libpngtest': No such file or directory
[b]checking if you want the zsnes debugger... yes[/b]
checking for initscr in -lcurses... no
checking for initscr in -lncurses... no
checking for initscr in -lpdcurses... no
configure: error: A curses library is required to use the debugger
[root@localhost src]#

How do I make it so that I do not want the debugger ( I do not even know what a debugger is.)
ardnew
Rookie
Posts: 13
Joined: Thu Oct 06, 2005 7:18 am

Post by ardnew »

Ok, you've done this method several times now. The problem you are running into is not having the appropriate packages installed on your system as required by ZSNES.

Here's a general rule of thumb for installing software on your machine:

- Visit http://rpmfind.net
- Find a copy of whatever package you are missing, and download it.
- Install the package. e.g.:

Code: Select all

# yum install ncurses-5.4-68.i586.rpm
- Repeat this until you've met all dependencies...
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

--disable-debugger to compile ZSNES w/o the debugger.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
yoshisaur
Rookie
Posts: 31
Joined: Sat Aug 18, 2007 9:22 pm

Post by yoshisaur »

I followed your advice and disabled debugger and all I got was this extremely long cryptic message and I do not understand what any of it means.

[root@localhost src]# ./configure --enable-release --disable-debugger
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 a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... 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 ISO C89... 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 sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for zlib - version >= 1.2.3... yes
checking for libpng - version >= 1.2.0... no
rm: cannot remove `conf.libpngtest': No such file or directory
checking if you want the zsnes debugger... no
checking if you want libao support... no
checking how to run the C preprocessor... gcc -E
checking for X... no
checking for glGetError in -lGL... no
checking for OpenGL... no
checking for JMA support... yes
checking for cpu info... found
checking if you want gdb friendly executable... no
checking which cpu architecture to optimize for... prescott
checking if you want crazy optimizations... yes
configure: WARNING: If you intend to distribute this binary, make sure you use force_arch and set to i586 (or whichever CPU Arch you intend for)
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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.51

SDL support Version 1.2.12
NASM support NASM version 0.98.39 compiled on Jan 15 2005
zlib support Version 1.2.3
PNG support Disabled, library not found
OpenGL support Disabled, library not found
JMA support Yes
ZSNES debugger Disabled

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

Configure complete, now type 'make' and pray.

[root@localhost src]# make
tools/depbuild gcc " -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DNO_PNG -DNO_DEBUGGER -march=prescott -O3 -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr -s -D__RELEASE__" nasm " -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -DNO_PNG -DNO_DEBUGGER -O99999999 -D__RELEASE__" cfg.o endmem.o init.o initc.o input.o md.o patch.o ui.o vcache.o version.o zloader.o zmovie.o zpath.o zstate.o ztime.o ztimec.o chips/c4emu.o chips/c4proc.o chips/dsp1emu.o chips/dsp1proc.o chips/dsp2proc.o chips/dsp3emu.o chips/dsp3proc.o chips/dsp4emu.o chips/dsp4proc.o chips/fxemu2.o chips/fxemu2b.o chips/fxemu2c.o chips/fxtable.o chips/obc1emu.o chips/obc1proc.o chips/sa1proc.o chips/sa1regs.o chips/sdd1emu.o chips/seta10.o chips/sfxproc.o chips/st10proc.o chips/7110proc.o chips/seta11.o chips/st11proc.o cpu/dma.o cpu/dsp.o cpu/dspproc.o cpu/execute.o cpu/executec.o cpu/irq.o cpu/memory.o cpu/memtable.o cpu/spc700.o cpu/stable.o cpu/table.o cpu/tablec.o gui/gui.o gui/guifuncs.o gui/menu.o effects/burn.o effects/smoke.o effects/water.o jma/7zlzma.o jma/crc32.o jma/iiostrm.o jma/inbyte.o jma/jma.o jma/lzma.o jma/lzmadec.o jma/winout.o jma/zsnesjma.o mmlib/mm.o mmlib/linux.o video/makev16b.o video/makev16t.o video/makevid.o video/mode716.o video/mode716b.o video/mode716d.o video/mode716e.o video/mode716t.o video/mode7.o video/mode7ext.o video/mv16tms.o video/m716text.o video/newg162.o video/newgfx.o video/newgfx16.o video/newgfx2.o video/procvid.o video/procvidc.o video/sw_draw.o video/2xsaiw.o video/hq2x16.o video/hq2x32.o video/hq3x16.o video/hq3x32.o video/hq4x16.o video/hq4x32.o video/ntsc.o video/copyvwin.o linux/audio.o linux/battery.o linux/sdlintrf.o linux/sdllink.o linux/sw_draw.o linux/safelib.o zip/unzip.o zip/zpng.o > makefile.dep
nasm -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -DNO_PNG -DNO_DEBUGGER -O99999999 -D__RELEASE__ -o video/newg162.o video/newg162.asm

Anyway I still do not have zsnes! Anybody have any ideas?
yoshisaur
Rookie
Posts: 31
Joined: Sat Aug 18, 2007 9:22 pm

Post by yoshisaur »

Also what is OpenGL? There was nothing mentioned about that in the install.txt file.
yoshisaur
Rookie
Posts: 31
Joined: Sat Aug 18, 2007 9:22 pm

Post by yoshisaur »

I almost forgot. I am not trying to make anyone mad I was just curious. Why is the Linux version of zsnes so much more difficult to install? With the Windows version I just unzipped a file and presto. Any idea why it is so much more difficult?
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

yoshisaur wrote:Also what is OpenGL? There was nothing mentioned about that in the install.txt file.
Um, a rendering API. This is necessary if you don't want to use the default software accelerated rendering. You will need the OpenGL headers in order to take advantage of this.
yoshisaur wrote:I almost forgot. I am not trying to make anyone mad I was just curious. Why is the Linux version of zsnes so much more difficult to install? With the Windows version I just unzipped a file and presto. Any idea why it is so much more difficult?
Anything to do with Linux requires stuff to be compiled, unless someone decides to build a binary for you, but that isn't guarenteed to work because of library dependencies.

If you are still having trouble, try downloading one of the precompiled libraries: http://board.zsnes.com/phpBB2/viewtopic.php?t=9465

Anyways, the Windows version doesn't have the same dependencies that SDL/Linux users have.. so it has to be compiled. The Windows port requires DX8a or better anyways. I'm telling you that jumping to Linux requires you to learn+do a lot more to get things working. It is not that everyone will simply just hand you a simple binary and you go from there in Linux.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
yoshisaur
Rookie
Posts: 31
Joined: Sat Aug 18, 2007 9:22 pm

Post by yoshisaur »

Oh. But that still does not answer my question about how to install zsnes. I have all the libraries but I just get that huge block of text! Do you have ideas for me? :)
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

When ZSNES is finished compiling, you need to do:
sudo make install
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
ardnew
Rookie
Posts: 13
Joined: Thu Oct 06, 2005 7:18 am

Post by ardnew »

yoshisaur wrote:Oh. But that still does not answer my question about how to install zsnes. I have all the libraries but I just get that huge block of text! Do you have ideas for me? :)
You do not have all the libraries:
yoshisaur wrote:SDL support Version 1.2.12
NASM support NASM version 0.98.39 compiled on Jan 15 2005
zlib support Version 1.2.3
PNG support Disabled, library not found
OpenGL support Disabled, library not found
JMA support Yes
ZSNES debugger Disabled
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

yoshisaur wrote:Oh. But that still does not answer my question about how to install zsnes. I have all the libraries but I just get that huge block of text! Do you have ideas for me? :)
Let it to compile, stopping it in the middle doesn't help. It will take a while.

Don't forget to pray. And ignore stupidity floating around in this thread.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Post Reply