LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 09-05-2006, 01:03 PM   #1
neo_granas
Member
 
Registered: May 2006
Location: Utah, USA
Distribution: Fedora Core 5
Posts: 35

Rep: Reputation: 15
Unable to get src.rpm installed


I have an old copy of a super nintendo game, however, my brother has taken it and refuses to give it back (he is enjoying it too much and i don't want to make the 4 hour drive to steal it back). So I looked into getting an emulator for it and came across Zsnes. I've used it before when I had windows and it was great, however, i'm running into issues getting it compiled. Seeing as how i've never done this, i check the man rpm command to understand what i was doing when i try to install an rpm. Seemed to give me the info i needed but i found that the main library file i got was a src.rpm and i searched the net, this site, and the install notes and there's no tag that explains it, or atleast that i could understand it.
Here is there error i get when trying to install the src.rpm

error: cannot write to %sourcedir /usr/src/redhat/SOURCES

And when i tried it under root I got this error:

warning: user hpa does not exist - using root
warning: group eng does not exist - using root
warning: user hpa does not exist - using root
warning: group eng does not exist - using root

I am tring to get NASM v0.98.39-1.src.rpm to install.
Anything, including pointing out i need help and where to find it would be greatly appreciated.

Last edited by neo_granas; 09-05-2006 at 01:10 PM.
 
Old 09-05-2006, 01:26 PM   #2
neo_granas
Member
 
Registered: May 2006
Location: Utah, USA
Distribution: Fedora Core 5
Posts: 35

Original Poster
Rep: Reputation: 15
Went searching around and found the rpm for it. However, I get these errors when trying to install it.

Just using rpm -i
error: can't create transaction lock on /var/lib/rpm/__db.000

sudo yum install ...
[Errno -1] Metadata file does not match checksum

Under root, nothing happens, shell just comes back on a new command line.
 
Old 09-05-2006, 01:40 PM   #3
neo_granas
Member
 
Registered: May 2006
Location: Utah, USA
Distribution: Fedora Core 5
Posts: 35

Original Poster
Rep: Reputation: 15
Very sorry to keep posting, but I'm trying to fix it myself and just keeping updated on here as to where I am.
got all the packages I needed and placed one copy int the src dir of it's folder and a backup elsewhere in case I screw this up.
When I use the compiler command sh ./autogen.sh && gmake && gmake install from the install notes I get this:
Code:
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/automake.html#Extending-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... 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 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 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
./configure: line 2929: syntax error near unexpected token `1.2.0,,AC_MSG_ERROR'./configure: line 2929: `AM_PATH_SDL(1.2.0,,AC_MSG_ERROR(SDL >= 1.2.0 is required))'
However, I did have the rpm for SDL 1.2.0 and I installed it and ran it again. Any tips?
 
Old 09-05-2006, 05:32 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
It is best that you build the binary from the source rpm file..........

As root install it; rpm -ivh nasm-0.98.39-1.src.rpm

You need to make a few changes to the nasm.spec file;

cd /usr/src/redhat/SPECS

Then using your choice of text editor edit and save the nasm.spec file, the changes are below;

# $Id: nasm.spec.in,v 1.8 2003/08/29 21:03:44 hpa Exp $
Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax
Name: nasm
Version: 0.98.39
#Serial: 6432512
Release: 1
License: LGPL

Then (still as root) build the rpm packages; rpmbuild -bb nasm.spec

Sample results;

Wrote: /home/lenard/rpmbuild/RPMS/x86_64/nasm-0.98.39-1.x86_64.rpm
Wrote: /home/lenard/rpmbuild/RPMS/x86_64/nasm-doc-0.98.39-1.x86_64.rpm
Wrote: /home/lenard/rpmbuild/RPMS/x86_64/nasm-rdoff-0.98.39-1.x86_64.rpm
Wrote: /home/lenard/rpmbuild/RPMS/x86_64/nasm-debuginfo-0.98.39-1.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.33648
+ umask 022
+ cd /home/lenard/rpmbuild/BUILD
+ cd nasm-0.98.39
+ rm -rf /tmp/rpm-build-nasm
+ exit 0

Note you normally have no need to install the debuginfo rpm so you might want to either move the file or delete it. Then from where the other nasm rpm files are located;

rpm -Uvh nasm*.rpm
 
Old 09-06-2006, 11:14 AM   #5
neo_granas
Member
 
Registered: May 2006
Location: Utah, USA
Distribution: Fedora Core 5
Posts: 35

Original Poster
Rep: Reputation: 15
Shell comes back with this
Code:
1:nasm                   warning: user hpa does not exist - using root
warning: group eng does not exist - using root
########################################### [100%]
warning: user hpa does not exist - using root
warning: group eng does not exist - using root
 
Old 09-06-2006, 11:29 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Yep, you extracted the source now compile it after making the suggested changes.
 
Old 09-06-2006, 11:35 AM   #7
neo_granas
Member
 
Registered: May 2006
Location: Utah, USA
Distribution: Fedora Core 5
Posts: 35

Original Poster
Rep: Reputation: 15
Shell came back with this from the rpmbuild command
Code:
error: Legacy syntax is unsupported: serial
error: line 5: Unknown tag: Serial: 6432512
 
Old 09-06-2006, 11:36 AM   #8
neo_granas
Member
 
Registered: May 2006
Location: Utah, USA
Distribution: Fedora Core 5
Posts: 35

Original Poster
Rep: Reputation: 15
Err...my bad. Didn't see the "#" and changing to "License".
Thanks so much, this had me stumped for a day.
 
Old 09-06-2006, 11:51 AM   #9
neo_granas
Member
 
Registered: May 2006
Location: Utah, USA
Distribution: Fedora Core 5
Posts: 35

Original Poster
Rep: Reputation: 15
Ran into another problem, it asks me to run ./autogen.sh && gmake && gmake install to install
However, shell gets an error at the end...
Code:
checking for a BSD-compatible install... /usr/bin/install -c
./configure: line 2929: syntax error near unexpected token `1.2.0,,AC_MSG_ERROR'
./configure: line 2929: `AM_PATH_SDL(1.2.0,,AC_MSG_ERROR(SDL >= 1.2.0 is required))'
And I already downloaded and installed SDL-1.2.11-1.i386.rpm
I checked the linux install notes and it just says to get a number of rpms and install them, which i've done already.
Any more ideas Lenard? You've really been very helpful to me.
 
Old 09-06-2006, 02:43 PM   #10
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Apparently you seem to be missing at least one of the Development Tools, this includes things like autoconf, automake, gcc, gcc-c++ and maybe the compat libs.

Edit;

You know we both forgot to look before we leaped, it seems that all you need to do is something like;

yum install nasm nasm-doc nasm-rdoff

Last edited by Lenard; 09-06-2006 at 06:41 PM.
 
Old 09-07-2006, 12:19 AM   #11
neo_granas
Member
 
Registered: May 2006
Location: Utah, USA
Distribution: Fedora Core 5
Posts: 35

Original Poster
Rep: Reputation: 15
Sorry to keep this problem going, but i'm guessing that the nasm-doc and nasm-rdoff are core files needed for the program to be compiled. I just want to understand what's going as I do this so that I can know how to fix something that may occur, plus I don't want to just blindly go along, I feel like I wouldn't learn anything from this. I got the same error as before, said I need the SDL-1.2.0 or greater, but I already installed the i386 rpm and tried it again but no dice.
 
Old 09-07-2006, 05:14 AM   #12
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Quit guessing please................ I already showed you that both the nasm-doc and nasm-rdoff rpm packages are created along with the nasm rpm, see post # 4 of this thread.

You keep saying that you have installed the i386 rpm package for SDL-1.2.0 or greater, please check the output from the command; rpm -qa 'SDL*'

Reason; you may need the SDL devel and/or mixer package(s) installed also in order to build. Also what happened when you used the yum command provided in my earlier post (#10 of this thread)???
 
Old 09-07-2006, 12:11 PM   #13
neo_granas
Member
 
Registered: May 2006
Location: Utah, USA
Distribution: Fedora Core 5
Posts: 35

Original Poster
Rep: Reputation: 15
When I ran the yum command previously noted both were installed successfully. I did not have the mixer/devel packages, so I got them and ran them both, rpm -qa 'SDL*' shows that I have version 'SDL-1.2.11-1' 'SDL_mixer-1.2.7-1' and 'SDL-devel-1.2.11-1' currently installed. When I ran the autogen command to build Zsnes, it appeared to be working fine and the last four output were:
Code:
/usr/bin/install -c -d -m 0755 //usr/local/bin
/usr/bin/install -c -m 0755 zsnes //usr/local/bin
/usr/bin/install -c -d -m 0755 //usr/local/man/man1
/usr/bin/install -c -m 0644 linux/zsnes.1 //usr/local/man/man1
I tried to run Zsnes (which was premature) to see if it was working and got this:

Code:
ZSNES v1.42 (c) 1997-2005, ZSNES Team

Be sure to check http://www.zsnes.com/ for the latest version.
Please report crashes to zsnes-devel@lists.sourceforge.net.

ZSNES is written by the ZSNES Team (See AUTHORS.TXT)
ZSNES comes with ABSOLUTELY NO WARRANTY.  This is free software,
and you are welcome to redistribute it under certain conditions;
please read 'LICENSE' thoroughly before doing so.

Use ZSNES -? for command line definitions.

*** glibc detected *** zsnes: munmap_chunk(): invalid pointer: 0xbf888e72 ***
======= Backtrace: =========
/lib/libc.so.6(__libc_free+0x179)[0x7d34f0]
zsnes[0x80ddd52]
======= Memory map: ========
00111000-00169000 r-xp 00000000 03:03 21795115   /usr/lib/libGL.so.1.2
00169000-0016b000 rwxp 00057000 03:03 21795115   /usr/lib/libGL.so.1.2
0016b000-00170000 rwxp 0016b000 00:00 0
0042c000-0050e000 r-xp 00000000 03:03 21801355   /usr/lib/libstdc++.so.6.0.8
0050e000-00512000 r-xp 000e1000 03:03 21801355   /usr/lib/libstdc++.so.6.0.8
00512000-00513000 rwxp 000e5000 03:03 21801355   /usr/lib/libstdc++.so.6.0.8
00513000-00519000 rwxp 00513000 00:00 0
0074e000-0074f000 r-xp 0074e000 00:00 0          [vdso]
0074f000-00768000 r-xp 00000000 03:03 11993263   /lib/ld-2.4.so
00768000-00769000 r-xp 00018000 03:03 11993263   /lib/ld-2.4.so
00769000-0076a000 rwxp 00019000 03:03 11993263   /lib/ld-2.4.so
0076c000-00899000 r-xp 00000000 03:03 11993264   /lib/libc-2.4.so
00899000-0089b000 r-xp 0012d000 03:03 11993264   /lib/libc-2.4.so
0089b000-0089c000 rwxp 0012f000 03:03 11993264   /lib/libc-2.4.so
0089c000-0089f000 rwxp 0089c000 00:00 0
008a1000-008a3000 r-xp 00000000 03:03 11993268   /lib/libdl-2.4.so
008a3000-008a4000 r-xp 00001000 03:03 11993268   /lib/libdl-2.4.so
008a4000-008a5000 rwxp 00002000 03:03 11993268   /lib/libdl-2.4.so
008a7000-008ca000 r-xp 00000000 03:03 11993276   /lib/libm-2.4.so
008ca000-008cb000 r-xp 00022000 03:03 11993276   /lib/libm-2.4.so
008cb000-008cc000 rwxp 00023000 03:03 11993276   /lib/libm-2.4.so
008ce000-008e0000 r-xp 00000000 03:03 21800086   /usr/lib/libz.so.1.2.3
008e0000-008e1000 rwxp 00011000 03:03 21800086   /usr/lib/libz.so.1.2.3
008e3000-009dc000 r-xp 00000000 03:03 21804323   /usr/lib/libX11.so.6.2.0
009dc000-009e0000 rwxp 000f9000 03:03 21804323   /usr/lib/libX11.so.6.2.0
009e2000-009e4000 r-xp 00000000 03:03 21803761   /usr/lib/libXau.so.6.0.0
009e4000-009e5000 rwxp 00001000 03:03 21803761   /usr/lib/libXau.so.6.0.0
009e7000-009ec000 r-xp 00000000 03:03 21803889   /usr/lib/libXdmcp.so.6.0.0
009ec000-009ed000 rwxp 00004000 03:03 21803889   /usr/lib/libXdmcp.so.6.0.0
009ee000-009ef000 rwxp 009ee000 00:00 0
00a83000-00a92000 r-xp 00000000 03:03 21807843   /usr/lib/libXext.so.6.4.0
00a92000-00a93000 rwxp 0000e000 03:03 21807843   /usr/lib/libXext.so.6.4.0
00b05000-00b15000 r-xp 00000000 03:03 11993283   /lib/libpthread-2.4.so
00b15000-00b16000 r-xp 0000f000 03:03 11993283   /lib/libpthread-2.4.so
00b16000-00b17000 rwxp 00010000 03:03 11993283   /lib/libpthread-2.4.so
00b17000-00b19000 rwxp 00b17000 00:00 0
00bce000-00bf5000 r-xp 00000000 03:03 21807796   /usr/lib/libpng12.so.0.1.2.8
00bf5000-00bf6000 rwxp 00026000 03:03 21807796   /usr/lib/libpng12.so.0.1.2.8
00cdd000-00cde000 rwxp 00cdd000 00:00 0
00dcb000-00dd6000 r-xp 00000000 03:03 11993298   /lib/libgcc_s-4.1.1-20060525.so.1
00dd6000-00dd7000 rwxp 0000a000 03:03 11993298   /lib/libgcc_s-4.1.1-20060525.so.1
04d64000-04d6b000 r-xp 00000000 03:03 21800583   /usr/lib/libdrm.so.2.0.0
04d6b000-04d6c000 rwxp 00006000 03:03 21800583   /usr/lib/libdrm.so.2.0.0
05751000-05755000 r-xp 00000000 03:03 21814393   /usr/lib/libXxf86vm.so.1.0.0
05755000-05756000 rwxp 00003000 03:03 21814393   /usr/lib/libXxf86vm.so.1.0.0
0591e000-05989000 r-xp 00000000 03:03 21798892   /usr/lib/libSDL-1.2.so.0.11.0
05989000-0598b000 rwxp 0006b000 03:03 21798892   /usr/lib/libSDL-1.2.so.0.11.0
0598b000-059a4000 rwxp 0598b000 00:00 0
08048000-082f9000 r-xp 00000000 03:03 21814681   /usr/local/bin/zsnes
082f9000-0834d000 rwxp 002b0000 03:03 21814681   /usr/local/bin/zsnes
0834d000-085b8000 rwxp 0834d000 00:00 0
08dd1000-08df2000 rwxp 08dd1000 00:00 0          [heap]
bf874000-bf889000 rwxp bf874000 00:00 0          [stack]
Aborted
 
Old 09-07-2006, 01:20 PM   #14
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
If you have not already done so please read the zsnes_1_42/docs/install.txt file.
 
Old 09-08-2006, 12:25 PM   #15
neo_granas
Member
 
Registered: May 2006
Location: Utah, USA
Distribution: Fedora Core 5
Posts: 35

Original Poster
Rep: Reputation: 15
I did, as well as readme.txt, and anything else I thought could have some useful information. All the install notes said for Linux is what packages to get and where to get them, then the command for compiling Zsnes. I'm on the Zsnes forums as well tyring to see if this problem has occured before and what to do about it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is it ok to use i386 rpm for i686 & how about src rpm amolgupta Linux - Software 4 05-01-2013 08:45 AM
Unable to find -lz (zlib). RPM is installed...???? dolvmin Linux - Software 3 12-03-2005 11:25 PM
installed kernel from src.rpm but what config was used ? qwijibow Linux - Software 2 01-20-2004 04:37 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 07:19 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

All times are GMT -5. The time now is 05:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration