From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,b93bdce3f525ded1 X-Google-Attributes: gid111c93,public From: "Ric Tibbetts" Subject: Re: SRPM compilation Date: 1998/07/05 Message-ID: <6npqm8$h82$1@hourglass.oz.net>#1/1 X-Deja-AN: 368818626 References: <3595888E.2662EC34@swt.edu> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Sense Networking Seattle (http://www.oz.net) Newsgroups: comp.os.linux.alpha But No! There's an easier way... Just do: rpm --rebuild That will compile the srpm, and re-package it into an installable rpm, and place that package in /usr/src/redhat/RPMS/$OS Then just go to that directory, and do rpm -ivh Easy as pie! B. James Phillippe wrote in message ... >On Sat, 27 Jun 1998, Robb wrote: > >> or SRPMS. I have RTFM and whatnot, but cannot figure out the correct way >> to install a SRPM. Would someone be kind enough to give me the procedure >> and commands, or a pointer to some information? > >What I do is rpm -i the RPM, and then rebuild it using the "rpm -ba >/path/to/spec-file" command (the files will be unpacked in >/usr/src/redhat). See if you have a /usr/doc/rpm-ver.num directory. >Another thing you can do is use rpm2cpio to conver the RPM to a cpio >archive, then install that in a temp directory and build it by hand. I >used to do this before I ran a RedHat system. > >> Also, I have downloaded the latest egcs snapshot, and would like to >> install it as a secondary compiler. What is the method to install it >> without blasting away the existing gcc? What invocation to use when >> compiling with egcs? Again, instructions or a link would be much >> appreciated. > >I installed my egcs in /usr/local (using ../configure --prefix=/usr/local >--with-local-prefix=/usr/local >--with-gxx-include-dir=/usr/local/include/g++) and then installed it. I >then either set /usr/local/bin before /usr/bin in my search path (not >ideal) or set up symlinks in my ~/bin called egcs and egcs++ that point to >the binaries in /usr/local/bin/gcc/++. > >Hope this helps, >-bp >-- >B. James Phillippe >Linux Software Engineer, WGT Inc. >http://earth.terran.org/~bryan >