Is DESTDIR always defined? On Tue, Jun 14, 2011 at 4:41 PM, Brandon Philips < brandon.phil...@cloudkick.com> wrote:
> With DESTDIR=/tmp/installdir the following error occurs: > > mkdir -p /usr/local/lib/ruby/site_ruby/1.9.1/x86_64-linux > install thrift_native.so /usr/local/lib/ruby/site_ruby/1.9.1/x86_64-linux/. > setup.rb:633:in `initialize': Permission denied - > /usr/local/lib/ruby/site_ruby/1.9.1/x86_64-linux/thrift_native.so > (Errno::EACCES) > > --- > lib/rb/Makefile.am | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/lib/rb/Makefile.am b/lib/rb/Makefile.am > index da45ed5..f2ff35e 100644 > --- a/lib/rb/Makefile.am > +++ b/lib/rb/Makefile.am > @@ -33,7 +33,7 @@ all-local: > $(RUBY) setup.rb setup > > install-exec-hook: > - $(RUBY) setup.rb install > + $(RUBY) setup.rb install --prefix=$(DESTDIR) > > # Make sure this doesn't fail if Ruby is not configured. > clean-local: > -- > 1.7.3.4 > >