Error Package Gcc Is Not Relocatable
Contents |
26, 2008 in CentOS, Linux, Package Management, RedHat and FriendsQ. Can you explain CentOS / RHEL / Fedora Linux relocatable package concept? A. RPM has the ability to how to make rpm package relocatable give users some latitude in deciding where packages are to be installed
Rpm: Relocations Must Contain A =
on their systems. However, package builders must first design their packages to give users this freedom. In other
Rpm: --prefix May Only Be Used When Installing New Packages
words, an RPM package that can be installed into a different directory is said to be relocatable. Please note that not all RPM packages can be installed into another directory.
Rpm Prefix Tag[
Task: Find out if whether a particular package is relocatable or notUse rpm command as follows: $ rpm -qi {package-name} | grep Relocations
$ rpm -qpi package.file.rpm | grep Relocations
$ rpm -qi bash | grep Relocations
Sample output (it means bash package can be installed in diffrent directory such as /home/chroot/users/):Name : bash Relocations: /usrFollowing rpm spec prefix variable package is not relocatable: $ rpm -qi keyutils-libs | grep -i Relocations Output:Name : keyutils-libs Relocations: (not relocatable)Task: Install package into a different directoryrpm command has -prefix option. It allows to install package in diffrent directory. For example, install bash into /opt directory: # rpm --prefix=/opt bash*.rpmSee also:man rpmChapter 15. Making a Relocatable Package Share this tutorial on:TwitterFacebookGoogle+Download PDF version Found an error/typo on this page?About the author: Vivek Gite is a seasoned sysadmin and a trainer for the Linux/Unix & shell scripting. Follow him on Twitter. OR read more like this:How do I install an RPM package into a different directory?Linux command to display package description, information, version and…Add a package group using up2date commandList installed packages on Linux or FreeBSD / OpenBSD systemFind out if package is installed in LinuxLinux rpm List Installed PackagesUbuntu Linux: How Do I install .deb Packages?Linux Duplicate packages when querying the rpm databasesyum Command: List The Contents (Files) Of A PackageFreeBSD Install .TBZ Package File{ 4 comments… add one } pradeep m August 13, 2008, 7:08 ami was a s
system that meets the demands of applications that businesses rely upon in today's marketplace. Search Forums Show Threads Show Posts Tag Search Advanced Search Unanswered Threads Find All Thanked Posts Go to Page... learn linux and unix commands - unix shell scripting Relocateable GCC!!!! how to install rpm package in different directory AIX Tags aix, gcc Page 1 of 3 1 23 > rpm prefix install Thread Tools Search this Thread Display Modes #1 01-07-2011 getback0 Registered User Join Date: Jan 2011 Last Activity: 22 May 2012, yum prefix 11:58 PM EDT Posts: 8 Thanks: 0 Thanked 0 Times in 0 Posts Relocateable GCC!!!! Gurus, This might be a piece of cake for you guys! But I have been ransacking the web (and my brain - no hardwork there!) to see http://www.cyberciti.biz/faq/rpm-relocatable-packages/ if I could get my hands around a relocateable version of GCC - why so?? from compile problems I am facing, it is evident my current gcc version is clearly not updated I am not a root user - so I am going to have to install this in my personal directory (I did put the request out to my UNIX admin, and it has been lying there for the last 2 weeks - I will be clearly in trouble if this was to http://www.unix.com/aix/151802-relocateable-gcc.html get delayed any further!) Question - could you help me locate and install gcc in a directory I could specify??? Truly appreciate any help you could provide!!! - G ---------- Post updated at 08:45 PM ---------- Previous update was at 08:43 PM ---------- Sorry - forgot to mention - OS is AIX 5.3. Remove advertisements Sponsored Links getback0 View Public Profile Find all posts by getback0 #2 01-07-2011 fpmurphy who? Join Date: Dec 2003 Last Activity: 12 June 2016, 11:03 PM EDT Location: /dev/ph Posts: 4,996 Thanks: 73 Thanked 475 Times in 437 Posts What do you mean by "relocateable version of GCC"? Generate relocatable code? Remove advertisements Sponsored Links fpmurphy View Public Profile Visit fpmurphy's homepage! Find all posts by fpmurphy #3 01-08-2011 getback0 Registered User Join Date: Jan 2011 Last Activity: 22 May 2012, 11:58 PM EDT Posts: 8 Thanks: 0 Thanked 0 Times in 0 Posts You know how when you run the rpm to install the package - you could use the "--relocate" flag to install in a directory other than where the package currently points - THAT IS, IF THE PACKAGE ALLOWS IT, right??? i.e. if it is relocateable (can be seen by running the "rpm -qip " command on the package). All rpms I have found through the web are "not relocatable". Do you know of any RPM or software out there that will help me install GCC in a directory I could specify? Thanks! Leon getback0 Vie
Re: installing a second gcc on the same machine Date: Wed, 11 Jun 2008 22:47:43 +0200 Something as "--badreloc" force someone to think that the rpm package manager is evilad i https://www.redhat.com/archives/rpm-list/2008-June/msg00010.html don't think this (look at this http://www.germane-software.com/~ser/Files/Essays/RPM_Hell.html). One thing marked as "--bad" is bad, not sure a normal mode of work. So it is a matter of quality assurace : do to the right think so to have confidence that the package preserve my system integrity ( and my time ) In the same vein, someone think that the package dependency are a nightname and i how to don't think this: but they think are more simple disabling the dependency, also when they distributed only binary package - commercial software or so. But it is this a nightmare : it is possible to upgrade the system ? which truly requisite i have on this software ? Sure, it is possibile to do : --ignorearch, --nodeps, ecc. But is it a sane thing to do ? error package gcc But ok, i am a lazy sysadmin, i like pace of mind : so i like rpm. I hope you agreed with most of the argument i have described.Best RegardsOn Wed, Jun 11, 2008 at 6:47 PM, James Olin Oden