Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Why is ./Build install destdir=$RPM_BUILD_ROOT ignoring the destdir?

by taint (Chaplain)
on Jan 09, 2014 at 21:12 UTC ( #1070028=note: print w/replies, xml ) Need Help??

in reply to Why is ./Build install destdir=$RPM_BUILD_ROOT ignoring the destdir?

I don't mean to sound mean, or anything. But You've already been told what the problem is:

Permission denied
Should it not already be obvious to you; this is a system error. Your system (the one your building this on) is trying to tell you that you don't have write privileges to the directory you are attempting to write to.

I'ts also possible that "Perl", itself is associated with some user/group, and wouldn't have permission. But, in almost any case, it's you, the user, whos permissions are inherited, that determine what can, and cannot be done on the system.

Perhaps doing an su before attempting the install?



UPDATE: I should also add; that you can also make the install, install to a lib within your home directory.

make install PREFIX=~/lib
assuming that the directory lib already exists within your ~ (Home) directory.

λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH

Replies are listed 'Best First'.
Re^2: Why is ./Build install destdir=$RPM_BUILD_ROOT ignoring the destdir?
by Anonymous Monk on Jan 09, 2014 at 21:32 UTC
    Thanks for your response taint. I learned that YAML::Tiny uses Module::Build::Tiny which does not like
    ./Build install destdir=$RPM_BUILD_ROOT
    so I had to change that line in my spec file to ...
    ./Build install --destdir=$RPM_BUILD_ROOT

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1070028]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (1)
As of 2018-02-19 02:35 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (258 votes). Check out past polls.