Installing ZSNES on Linux...help me please!

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

Moderator: ZSNES Mods

Alek
New Member
Posts: 4
Joined: Mon Jun 26, 2006 2:50 am

Installing ZSNES on Linux...help me please!

Post by Alek »

Before I begin, let me start by saying that I know absolutely nothing about Linux. Assume that I just installed Linux a second ago and I had never before heard of it.

I'm running Ubuntu on my laptop right now. I think I managed to unzip the ZSNES files that I got from the site. The trouble is, I don't know how to go about actually installing the program. None of the file extensions mean anything to me, I typically use Windows and DOS, so I don't know which one to run to start the installation. Assuming, of course, that it even works that way.

Could someone please help me?
odditude
Official tech support dood
Posts: 2118
Joined: Wed Jan 25, 2006 7:57 am

Post by odditude »

Which file(s) did you download? If you downloaded one of ipher's WIPs, then you'll want to open up a console, navigate to the "src" directory inside what you unzipped, and then run the following three commands:

./autogen.sh

make

sudo make install

If it works, congratulations. If not, or if you're lost, post back.
Alek
New Member
Posts: 4
Joined: Mon Jun 26, 2006 2:50 am

Post by Alek »

Uhh...here's what I did.

I went here http://www.zsnes.com/

Then I just downloaded the latest version for Linux (right in the upperleft corner there).

After that I ran these commands:
"gzip -d 'filename.tar.gz"
"tar -xvf 'filename.tar"

It automatically extracted a folder into my "home" directory. In it I have several files that I have no clue what to do with.

Is that any help?
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 »

First, open Synaptic. Search for (and possibly install):

make
autoconf
automake
libsdl12
libpng (though I've compiled and used just fine without it, or I had it and didn't know :P)
nasm

Next, do what odditude says.
<Nach> so why don't the two of you get your own room and leave us alone with this stupidity of yours?
NSRT here.
Alek
New Member
Posts: 4
Joined: Mon Jun 26, 2006 2:50 am

Post by Alek »

adventure_of_link wrote:First, open Synaptic. Search for (and possibly install):

make
autoconf
automake
libsdl12
libpng (though I've compiled and used just fine without it, or I had it and didn't know :P)
nasm

Next, do what odditude says.
Uhh ok. So I'm in Synaptic Package Manager. The only one of those that I found (though I don't understand what they're for) was "make." My laptop currently has no internet connection whatsoever, so will that be a problem in those missing thingies?
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 »

Yes.
<Nach> so why don't the two of you get your own room and leave us alone with this stupidity of yours?
NSRT here.
Alek
New Member
Posts: 4
Joined: Mon Jun 26, 2006 2:50 am

Post by Alek »

adventure_of_link wrote:Yes.
Do you know where I could get these so that I could download them from my main computer on to my laptop?

Also...is there any other way to do this?! :(
Maybe another SNES emulator could do this easier?
lishkan nui
New Member
Posts: 6
Joined: Sun Jun 25, 2006 7:39 pm

Post by lishkan nui »

Alek wrote:
adventure_of_link wrote:Yes.
Do you know where I could get these so that I could download them from my main computer on to my laptop?

Also...is there any other way to do this?! :(
Maybe another SNES emulator could do this easier?
Not likely. Linux software in general is like this, a pain to install.
Lord Alpha
Lurker
Posts: 165
Joined: Wed Jul 28, 2004 3:15 am
Location: The Land of Insanity
Contact:

Post by Lord Alpha »

Alek wrote: After that I ran these commands:
"gzip -d 'filename.tar.gz"
"tar -xvf 'filename.tar"
Helpful hint the next time you have to decompress something like this:

tar-xzvf filename will eleminate the need for 'gzip -d filename'

Also, if you ever come across a BZ2 file, use tar-xjvf filename
It is better to be silent and thought a fool then to open your mouth and remove all doubt

I am Zophar, Master of Sh*t!

[url=http://archlyn.bravejournal.com]View my blog[/url]
nemesis636

Post by nemesis636 »

Or you could just completely avoid compiling anything, go to your terminal and run:

sudo apt-get install zsnes

boom! done.
kgee
New Member
Posts: 8
Joined: Sun Jul 02, 2006 9:57 pm

Not quite working.

Post by kgee »

Ive been trying to get zsnes working for ubuntu for a while, but with no luck. I stumbled upon this thread and decided to give it another go. No luck. here is the error i get:

kgee@linuxlappy:~/zsnes_1_42/src$ ./autogen.sh
Generating build information using aclocal and autoconf...
./autogen.sh: line 6: sdl-config: command not found
acinclude.m4:10: warning: underquoted definition of AM_PATH_ZLIB
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/auto ... ng-aclocal
acinclude.m4:121: warning: underquoted definition of AM_PATH_LIBPNG
aclocal: couldn't open directory `/share/aclocal': No such file or directory
checking build system type... configure: error: cannot guess build type; you must specify one
kgee@linuxlappy:~/zsnes_1_42/src$

what does it mean by "build type"? If you can point me in the right direction im sure I can figure it out, but as it stands i dont even know where to start looking for the solution.
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 »

adventure_of_link wrote:First, open Synaptic. Search for (and possibly install):

make
autoconf
automake
libsdl12
libpng (though I've compiled and used just fine without it, or I had it and didn't know :P)
nasm

Next, do what odditude says.
Sort of irrelevant, but I forgot about GCC and G++.

and iirc, the build-type is the version of Linux you're using, eg: i686-pc-linux-GNU, etc.
<Nach> so why don't the two of you get your own room and leave us alone with this stupidity of yours?
NSRT here.
spoon0042
Rookie
Posts: 46
Joined: Mon Jun 12, 2006 9:52 pm

Re: Not quite working.

Post by spoon0042 »

kgee wrote:./autogen.sh: line 6: sdl-config: command not found
You'll also need libsdl12-dev or whatever your SDL development package is called.
gord
Rookie
Posts: 11
Joined: Tue Aug 16, 2005 10:11 am

Post by gord »

when building programs on ubuntu the actual proper way of getting all the tools you need is to get the build-essential package.

Code: Select all

sudo aptitude install build-essential
just do this and you should have everything you need to compile/install zsnes, navigate to the directory that your sources are in and.

Code: Select all

sudo aptitude install build-essential libsdl1.2-dev
./autogen.sh --prefix=/usr
make
sudo make install
kgee
New Member
Posts: 8
Joined: Sun Jul 02, 2006 9:57 pm

Post by kgee »

gord wrote:when building programs on ubuntu the actual proper way of getting all the tools you need is to get the build-essential package.

Code: Select all

sudo aptitude install build-essential
just do this and you should have everything you need to compile/install zsnes, navigate to the directory that your sources are in and.

Code: Select all

sudo aptitude install build-essential libsdl1.2-dev
./autogen.sh --prefix=/usr
make
sudo make install
Thanks gord, that helped. the ./autogen.sh worked perfectly.

now the make and sudo make install aren't working.

kgee@linuxlappy:~/zsnes_1_42/src$ make
make: *** No targets specified and no makefile found. Stop.
kgee@linuxlappy:~/zsnes_1_42/src$ sudo make install
make: *** No rule to make target `install'. Stop.
kgee@linuxlappy:~/zsnes_1_42/src$

it says no makefile found, but there are clearly 3 files titled makefile (one is a .check, one is a .in and the other is a .ms)

so close, yet i dont know enough to continue.

a little help?
spoon0042
Rookie
Posts: 46
Joined: Mon Jun 12, 2006 9:52 pm

Post by spoon0042 »

If autogen.sh worked a Makefile (no extension) should have been created.

Post the last dozen or so lines you get from running autogen.sh
kgee
New Member
Posts: 8
Joined: Sun Jul 02, 2006 9:57 pm

Post by kgee »

checking whether c++ 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
./configure: line 1452: syntax error near unexpected token `1.1.0,,AC_MSG_ERROR'./configure: line 1452: `AM_PATH_ZLIB(1.1.0,,AC_MSG_ERROR(ZLIB >= 1.1.0 is required))'
kgee@linuxlappy:~/zsnes_1_42/src$

Yeah, so this is the last part of the ./autogen.sh.

any ideas?

edit: I have zlib1g and it needs greater than 1.1? I cant apt-get to get anything greater, where would I find it?
spoon0042
Rookie
Posts: 46
Joined: Mon Jun 12, 2006 9:52 pm

Post by spoon0042 »

You need to install zlib1g-dev, and while you're at it you may as well get libpng12-dev and (I think) libgl1-mesa-dev (not sure about that, and it's probably different if you have an nvidia card. you might want to ignore GL for now. or ask somebody else)

Hopefully that will work.
kgee
New Member
Posts: 8
Joined: Sun Jul 02, 2006 9:57 pm

Post by kgee »

I have all those, yet its still not working.
gord
Rookie
Posts: 11
Joined: Tue Aug 16, 2005 10:11 am

Post by gord »

stab in the dark but make sure you have the "autogen" package as well
odditude
Official tech support dood
Posts: 2118
Joined: Wed Jan 25, 2006 7:57 am

Post by odditude »

Code: Select all

./autogen.sh --prefix=/usr
Gord: What's with the "--prefix=/usr" ? I've never needed to use this; is it possibly breaking something?

kgee: Please post the entire results of ./autogen.sh, there's probably another package that's missing (or silently broken).
kgee
New Member
Posts: 8
Joined: Sun Jul 02, 2006 9:57 pm

Post by kgee »

gord: good guess, autogen was not installed, yet that did not change the output of the ./autogen.sh.

here is the full result:

kgee@linuxlappy:~/zsnes_1_42/src$ ./autogen.sh
Generating build information using aclocal and autoconf...
acinclude.m4:10: warning: underquoted definition of AM_PATH_ZLIB
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/auto ... ng-aclocal
acinclude.m4:121: warning: underquoted definition of AM_PATH_LIBPNG
autoconf: Undefined macros:
configure.in:27:AC_MSG_ERROR(You need NASM installed to compile ZSNES)
configure.in:53: AC_MSG_ERROR(This Target is Not Supported)
configure.in:61:AM_PATH_SDL(1.2.0,,[AC_MSG_ERROR(SDL >= 1.2
.0 is required)])
configure.in:62:AM_PATH_ZLIB(1.1.0,,[AC_MSG_ERROR(ZLIB >= 1.1.0 is required)])
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc -pipe -I. -Wall -I/usr/local/include -I/usr/include -L/usr/local/lib -L/usr/lib) works... yes
checking whether the C compiler (gcc -pipe -I. -Wall -I/usr/local/include -I/usr/include -L/usr/local/lib -L/usr/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++ -L/usr/local/lib -L/usr/lib) works... yes
checking whether the C++ compiler (c++ -L/usr/local/lib -L/usr/lib) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ 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
./configure: line 1452: syntax error near unexpected token `1.1.0,,AC_MSG_ERROR'./configure: line 1452: `AM_PATH_ZLIB(1.1.0,,AC_MSG_ERROR(ZLIB >= 1.1.0 is required))'
kgee@linuxlappy:~/zsnes_1_42/src$

edit:

to save you all some time, Im going through my packages to see what I have.

I have:
automake1.9
autoconf
autogen
libsdl1.2debian
libsdl1.2debian-all
libsdl1.2-dev
gcc
zlib1g
nasm
libpng12-0
libpng12-dev
g++
spoon0042
Rookie
Posts: 46
Joined: Mon Jun 12, 2006 9:52 pm

Post by spoon0042 »

Try automake1.8. The GNU guys seem to like to gratuitously break things for some reason.
kgee
New Member
Posts: 8
Joined: Sun Jul 02, 2006 9:57 pm

Post by kgee »

automake1.8:

./autogen gives the same output
gord
Rookie
Posts: 11
Joined: Tue Aug 16, 2005 10:11 am

Post by gord »

--prefix=/usr just installs the software to /usr instead of /usr/local. if you'v set up your programs to run over a network then you will want it to goto /usr/local but on a normal computer /usr is more.. complient. i'v just seen installing to local to break somethings, force of habit now.

on another note, you might want to make sure you get the zlib1g-dev package as well ;)
Post Reply