Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
make install DESTDIR
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
aj  
View profile  
 More options Aug 20 2010, 7:21 pm
Newsgroups: comp.lang.python
From: aj <mailtome200420032...@gmail.com>
Date: Fri, 20 Aug 2010 16:21:15 -0700 (PDT)
Local: Fri, Aug 20 2010 7:21 pm
Subject: make install DESTDIR
I am trying to install python with make install DESTDIR=/home/blah

./python -E ./setup.py install \
                --prefix=/ \
                --install-scripts=//bin \
                --install-platlib=//lib/python2.6/lib-dynload \
                --root=//home/blah
running install
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers

Failed to find the necessary bits to build these modules:
_tkinter           bsddb185           dl
imageop            sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for
the module's name.

running build_scripts
running install_lib
creating /lib/python2.6
error: could not create '/lib/python2.6': Permission denied
make: *** [sharedinstall] Error 1


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Jollans  
View profile  
 More options Aug 20 2010, 7:39 pm
Newsgroups: comp.lang.python
From: Thomas Jollans <tho...@jollybox.de>
Date: Sat, 21 Aug 2010 01:39:47 +0200
Local: Fri, Aug 20 2010 7:39 pm
Subject: Re: make install DESTDIR
On Saturday 21 August 2010, it occurred to aj to exclaim:

> I am trying to install python with make install DESTDIR=/home/blah

>                 --prefix=/

...

> creating /lib/python2.6
> error: could not create '/lib/python2.6': Permission denied
> make: *** [sharedinstall] Error 1

Obviously, the flags you specified didn't have the effect you intended.

  --prefix=$HOME

should do the trick.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aj  
View profile  
 More options Aug 20 2010, 9:12 pm
Newsgroups: comp.lang.python
From: aj <mailtome200420032...@gmail.com>
Date: Fri, 20 Aug 2010 18:12:16 -0700 (PDT)
Local: Fri, Aug 20 2010 9:12 pm
Subject: Re: make install DESTDIR
On Aug 20, 4:39 pm, Thomas Jollans <tho...@jollybox.de> wrote:

The whole point of DESTDIR is that it should be prepended to all
installed paths, but the binaries should not contain any references to
it.DESTDIR is commonly used by packagers, for example, to allow
installation without superuser privileges.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Jollans  
View profile  
 More options Aug 21 2010, 7:02 am
Newsgroups: comp.lang.python
From: Thomas Jollans <tho...@jollybox.de>
Date: Sat, 21 Aug 2010 13:02:55 +0200
Local: Sat, Aug 21 2010 7:02 am
Subject: Re: make install DESTDIR
On Saturday 21 August 2010, it occurred to aj to exclaim:

Sorry, that feature slipped my mind.

So, are you running
$ make install DESTDIR=/home/foo/bar

or are you trying to directly run setup.py? I just tried and use make worked
for me. (though I was in a Python 3.2 dev source tree, not 2.6 -- maybe this
was a bug that has been fixed?)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin v. Loewis  
View profile  
 More options Aug 21 2010, 7:43 am
Newsgroups: comp.lang.python
From: "Martin v. Loewis" <mar...@v.loewis.de>
Date: Sat, 21 Aug 2010 13:43:48 +0200
Local: Sat, Aug 21 2010 7:43 am
Subject: Re: make install DESTDIR

> The whole point of DESTDIR is that it should be prepended to all
> installed paths, but the binaries should not contain any references to
> it.DESTDIR is commonly used by packagers, for example, to allow
> installation without superuser privileges.

So what is the point of your messages? Do you want to report a problem?
Are you asking for help? Do you want to vent frustration?

Regards,
Martin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aj  
View profile  
 More options Aug 23 2010, 1:43 pm
Newsgroups: comp.lang.python
From: aj <mailtome200420032...@gmail.com>
Date: Mon, 23 Aug 2010 10:43:56 -0700 (PDT)
Local: Mon, Aug 23 2010 1:43 pm
Subject: Re: make install DESTDIR
Thanks for reply Thomas. I am running make install DESTDIR=/home/foo/
bar.
Martin- Asking for help :)

On Aug 21, 4:43 am, "Martin v. Loewis" <mar...@v.loewis.de> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin v. Loewis  
View profile  
 More options Aug 23 2010, 5:23 pm
Newsgroups: comp.lang.python
From: "Martin v. Loewis" <mar...@v.loewis.de>
Date: Mon, 23 Aug 2010 23:23:09 +0200
Local: Mon, Aug 23 2010 5:23 pm
Subject: Re: make install DESTDIR

> Martin- Asking for help :)

Ok. Please try the patch below.

If this works, please make a bug report.

Regards,
Martin

Index: Lib/distutils/util.py
===================================================================
--- Lib/distutils/util.py       (Revision 84197)
+++ Lib/distutils/util.py       (Arbeitskopie)
@@ -220,7 +220,7 @@
         if not os.path.isabs(pathname):
             return os.path.join(new_root, pathname)
         else:
-            return os.path.join(new_root, pathname[1:])
+            return os.path.join(new_root, pathname.lstrip('/'))

     elif os.name == 'nt':
         (drive, path) = os.path.splitdrive(pathname)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aj  
View profile  
 More options Aug 23 2010, 9:26 pm
Newsgroups: comp.lang.python
From: aj <mailtome200420032...@gmail.com>
Date: Mon, 23 Aug 2010 18:26:05 -0700 (PDT)
Local: Mon, Aug 23 2010 9:26 pm
Subject: Re: make install DESTDIR
On Aug 23, 2:23 pm, "Martin v. Loewis" <mar...@v.loewis.de> wrote:

Thanks Martin. That seems to work. I will file a bug report. Also, can
you describe what the problem was?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin v. Loewis  
View profile  
 More options Aug 24 2010, 1:52 am
Newsgroups: comp.lang.python
From: "Martin v. Loewis" <mar...@v.loewis.de>
Date: Tue, 24 Aug 2010 07:52:01 +0200
Local: Tues, Aug 24 2010 1:52 am
Subject: Re: make install DESTDIR

> Thanks Martin. That seems to work. I will file a bug report. Also, can
> you describe what the problem was?

If you have / as the prefix, you get two leading slashes, e.g. for
//lib/python2.x. Any other prefix would have given you only a single
slash: e.g. if it had been /usr, then you end up with /usr/lib/python2.x.

Now, the code strips the first character to make it a relative path name
(so that join can be used), which fails to work correctly if there are
two leading slashes.

HTH,
Martin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aj  
View profile  
 More options Aug 24 2010, 3:21 pm
Newsgroups: comp.lang.python
From: aj <mailtome200420032...@gmail.com>
Date: Tue, 24 Aug 2010 12:21:31 -0700 (PDT)
Local: Tues, Aug 24 2010 3:21 pm
Subject: Re: make install DESTDIR
On Aug 23, 10:52 pm, "Martin v. Loewis" <mar...@v.loewis.de> wrote:
> > Thanks Martin. That seems to work. I will file a bug report. Also, can
> > you describe what the problem was?

> If you have / as the prefix, you get two leading slashes, e.g. for
> //lib/python2.x. Any other prefix would have given you only a single
> slash: e.g. if it had been /usr, then you end up with /usr/lib/python2.x.

> Now, the code strips the first character to make it a relative path name
> (so that join can be used), which fails to work correctly if there are
> two leading slashes.

> HTH,
> Martin

Thanks a lot for the help Martin. I have created http://bugs.python.org/issue9674

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »