Can't install rpm package with --prefix in new path.Error: package is not relocatable | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Can't install rpm package with --prefix in new path.Error: package is not relocatable

UNIX for Dummies Questions & Answers


Tags
error, install, location, prefix, rpm

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-31-2012
g_p g_p is offline
Registered User
 
Join Date: Feb 2011
Last Activity: 31 March 2012, 7:29 PM EDT
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Can't install rpm package with --prefix in new path.Error: package is not relocatable

Hello,

i have downloaded an rpm package "hadoop-0.20.205.0-1.amd64.rpm"
in /usr/local/ directory.

I'm trying to install the rpm package in a new path/location (/usr/local/hadoop-0.20.205), but i can't.

I did:

1st try: Didn't work


Code:
sudo rpm  -i --prefix=/usr/local/hadoop-0.20.205 /usr/local/hadoop-0.20.205.0-1.amd64.rpm
error: package hadoop is not relocatable

2nd try: Didn't work


Code:
 sudo rpm -i /usr/local/hadoop-0.20.205.0-1.amd64.rpm --prefix /usr/local/hadoop-0.20.205
error: package hadoop is not relocatable

What can i do in order to install the rpm package in a new location?

Thanks, in advance
Sponsored Links
    #2  
Old 04-01-2012
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 21 October 2014, 9:59 PM EDT
Location: NM
Posts: 10,246
Thanks: 281
Thanked 803 Times in 747 Posts
It doesn't like the -- in the directory name, I believe. Do one of these

1. pick another name like "prefix" with no dashes - this is a better long term idea, unix has issues with interpreting leading dashes in filenames

2. Use the full path to the -- :

Code:
command  /full/path/to/--prefix

Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem when trying to remove a package using rpm command - error: package is not installed g_p Emergency UNIX and Linux Support 4 04-04-2012 05:36 AM
X-Emacs Install: Can't specify package path (21.5.29) LovinLinux UNIX for Advanced & Expert Users 0 04-01-2010 09:14 AM
Uninstall a relocatable package vibhor_agarwali AIX 1 05-25-2009 03:00 AM
AIX relocatable package help vibhor_agarwali AIX 2 05-06-2009 02:53 AM
Find installed location of a relocatable package vibhor_agarwali Linux 0 04-09-2009 09:46 AM



All times are GMT -4. The time now is 03:59 AM.