Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* SRPM compilation
@ 1998-06-27  4:00 Robb
  1998-06-28  4:00 ` Matt Grossman
  1998-07-03  4:00 ` B. James Phillippe
  0 siblings, 2 replies; 5+ messages in thread
From: Robb @ 1998-06-27  4:00 UTC (permalink / raw)



I have a newbie question concerning source RPMS. I run RedHat 5.0, and
am trying to upgrade to the latest development kernel on my DEC XL300,
and so need to upgrade a variety of packages. Most of the latest stuff
is only available as .tgz
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?

	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.

Thanks in advance.

--
Robb Romans					So I shot 'em down
						One by one
Southwest Texas State University		Then I left 'em 'long the rails
www.swt.edu/~rr44607				I only use my gun
						Whenever kindness fails
							-- Robert Earl Keen



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SRPM compilation
  1998-06-27  4:00 SRPM compilation Robb
@ 1998-06-28  4:00 ` Matt Grossman
  1998-07-03  4:00 ` B. James Phillippe
  1 sibling, 0 replies; 5+ messages in thread
From: Matt Grossman @ 1998-06-28  4:00 UTC (permalink / raw)



Robb <rr44607@swt.edu> writes:

> I have a newbie question concerning source RPMS. I run RedHat 5.0, and
> am trying to upgrade to the latest development kernel on my DEC XL300,
> and so need to upgrade a variety of packages. Most of the latest stuff
> is only available as .tgz
> 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?

Just "rpm -ihv <srpm>" and it will install the sources and any patches
in /usr/src/redhat/SOURCES, then you can build it there.

> 	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.

Just make sure you are installing it in a different place from the
regular gcc (like /usr/local/egcs/bin).  When you build the package,
just supply the "--prefix=/usr/local/egcs" (or whatever) flag to
configure.

egcs may have new options, which are documented in the egcs
distribution.  Otherwise, you use it the same as you would gcc.

Matt Grossman
mattg@oz.net
http://www.oz.net/~mattg



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SRPM compilation
  1998-06-27  4:00 SRPM compilation Robb
  1998-06-28  4:00 ` Matt Grossman
@ 1998-07-03  4:00 ` B. James Phillippe
  1998-07-05  4:00   ` Ric Tibbetts
  1 sibling, 1 reply; 5+ messages in thread
From: B. James Phillippe @ 1998-07-03  4:00 UTC (permalink / raw)
  To: Robb


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 <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://earth.terran.org/~bryan




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SRPM compilation
  1998-07-03  4:00 ` B. James Phillippe
@ 1998-07-05  4:00   ` Ric Tibbetts
  1998-07-07  4:00     ` Robb
  0 siblings, 1 reply; 5+ messages in thread
From: Ric Tibbetts @ 1998-07-05  4:00 UTC (permalink / raw)



But No! There's an easier way...
Just do:
    rpm --rebuild <srpm-name>
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 <rpm-name>

            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 <bryan@terran.org>
>Linux Software Engineer, WGT Inc.
>http://earth.terran.org/~bryan
>





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SRPM compilation
  1998-07-05  4:00   ` Ric Tibbetts
@ 1998-07-07  4:00     ` Robb
  0 siblings, 0 replies; 5+ messages in thread
From: Robb @ 1998-07-07  4:00 UTC (permalink / raw)



Many thanks to all those that responded.

Regards,
Robb.


Ric Tibbetts wrote:
> 
> But No! There's an easier way...
> Just do:
>     rpm --rebuild <srpm-name>
> 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 <rpm-name>
> 
>             Easy as pie!

--
Robb Romans					So I shot 'em down
						One by one
Southwest Texas State University		Then I left 'em 'long the rails
www.swt.edu/~rr44607				I only use my gun
						Whenever kindness fails
							-- Robert Earl Keen



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-07-07  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-27  4:00 SRPM compilation Robb
1998-06-28  4:00 ` Matt Grossman
1998-07-03  4:00 ` B. James Phillippe
1998-07-05  4:00   ` Ric Tibbetts
1998-07-07  4:00     ` Robb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox