installing on Linux

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

Moderator: ZSNES Mods

Post Reply
Dolphin
Rookie
Posts: 39
Joined: Thu Aug 26, 2004 8:55 pm

installing on Linux

Post by Dolphin »

How may I install zsnes on Linux?

Im new to Linux
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

What Linux distrobution do you have? E.g., Mandrake, SuSE, Fedora.
[u][url=http://bash.org/?577451]#577451[/url][/u]
Dolphin
Rookie
Posts: 39
Joined: Thu Aug 26, 2004 8:55 pm

Post by Dolphin »

I have Topologilinux, its based on Slackware

i typed in
./configure && gmake && gmake install

then the confiqure does its thing and after that

Code: Select all

You may now run make to compile zsnes
Make sure you use GNU make when compiling.
/usr/bin/nasm  -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -o cpu/addrni.o cpu/addrni.asm
gmake: *** [cpu/addrni.o] Segmentation fault
gmake: *** Deleting file `cpu/addrni.o'
rage46
Lurker
Posts: 117
Joined: Wed Jul 28, 2004 4:02 am
Location: nowhere special

Post by rage46 »

don't get fancy, try these steps

./configure
make
make install

Don't try them all at once and try make instead of gmake.
Some people are like slinky's not really good for anything but you can't help smile when one falls down the stairs.
Lord Alpha
Lurker
Posts: 165
Joined: Wed Jul 28, 2004 3:15 am
Location: The Land of Insanity
Contact:

Post by Lord Alpha »

First off, you shouldn't have to use gmake at all because this is a GNU linux system - not a big thing, just for general info.

Secondly make sure you have nasm v 0.98.38 because 0.98.37 doesn't play nicely with zsnes at all
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]
Dolphin
Rookie
Posts: 39
Joined: Thu Aug 26, 2004 8:55 pm

Post by Dolphin »

I got the new version of nasm, its in rpm, I opened it and went to packages>install selected nasm clicked install, when I check by typing in 'nasm -v' it say's its still version 0.98.37

How may I install it properly?

Thanks in advance!
rage46
Lurker
Posts: 117
Joined: Wed Jul 28, 2004 4:02 am
Location: nowhere special

Post by rage46 »

rpm -ivh <nasm filename here that you want to install>
Some people are like slinky's not really good for anything but you can't help smile when one falls down the stairs.
Dolphin
Rookie
Posts: 39
Joined: Thu Aug 26, 2004 8:55 pm

Post by Dolphin »

Thanks very much, This is my first install in Linux, Im almost there :)

Just one more thing; I don't want to install zsnes in the default directory /user/..., How may I install zsnes in a diferent directory?

Thanx in advance!
rage46
Lurker
Posts: 117
Joined: Wed Jul 28, 2004 4:02 am
Location: nowhere special

Post by rage46 »

well untar and gunzip it into the directory you want it in.
Some people are like slinky's not really good for anything but you can't help smile when one falls down the stairs.
Lord Alpha
Lurker
Posts: 165
Joined: Wed Jul 28, 2004 3:15 am
Location: The Land of Insanity
Contact:

Post by Lord Alpha »

Okay, I know you got a new version of nasm installed, but if you're using a slackware-based distro, I sugggest that you use tgz files, not RPMs. You *can* use RPMs but in my experience it tends to break things on slackware sometimes.

Download the nsam package from here then (as root) cd to wherever you downloaded the file and issue the command

Code: Select all

upgradepkg nasm-0.98.38-i486-1.tgz
...with that done it's time to actually install zsnes

cd to some directory and untar the ZSNES source code (or better yet grab it from CVS) if you haven't already, just cd to the directory where the sources are and do

Code: Select all

make distclean
./configure --bindir={wherever you want}
make
make install
Be aware that the --bindir option will put zsnes' compiled binary in $PREFIX/bin, where $PREFIX is the directory you choose so in other words if you do

./configure --bindir=/home/someuser the the resulting binary will be placed in /home/someuser/bin

HTH
:)
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]
rage46
Lurker
Posts: 117
Joined: Wed Jul 28, 2004 4:02 am
Location: nowhere special

Post by rage46 »

lord alpha wrote:

Code: Select all

make distclean
./configure --prefix={wherever you want}
make
make install
Gimme a minute to check this...
Eh? do you need to pass a prefix to the configure command, I guess my redhat/knoppix use made me forget about slack. But yes I find that using the src is better then using rpm's.
Some people are like slinky's not really good for anything but you can't help smile when one falls down the stairs.
Dolphin
Rookie
Posts: 39
Joined: Thu Aug 26, 2004 8:55 pm

Post by Dolphin »

Thanks very much everyone.

I went and downloaded the nasm .tar.gz file and installed it successfully. Thanks for the tip :)

I got it installed and it works :)
Lord Alpha
Lurker
Posts: 165
Joined: Wed Jul 28, 2004 3:15 am
Location: The Land of Insanity
Contact:

Post by Lord Alpha »

rage46 wrote:
lord alpha wrote:

Code: Select all

make distclean
./configure --prefix={wherever you want}
make
make install
Gimme a minute to check this...
Eh? do you need to pass a prefix to the configure command, I guess my redhat/knoppix use made me forget about slack. But yes I find that using the src is better then using rpm's.
No you don't but Dolphin said s/he didn't want zsnes to install to the default localtion (/usr/local/bin) so I gave him/her the flag to use to change that :)
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]
Post Reply