X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <9ea6aaa80803172015i3adb46cq3af80a70fa7ff063@mail.gmail.com> Date: Mon, 17 Mar 2008 23:15:59 -0400 From: "Matthew Persico" To: cygwin AT cygwin DOT com Subject: Re: Building perl-5.10.0 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7634A226C4C245868140309A0F3A952F AT desktop2> <2kap83p6s5819lu66sr6kmrem6o5iqm180 AT 4ax DOT com> <56E5E10621694E4A860212458ECD1E1C AT desktop2> <015b01c7bf20$a3d3e4a0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Fri, Mar 14, 2008 at 9:05 AM, Sisyphus wrote: > Hi, > I thought I might build perl-5.10.0, so I downloaded the perl source into > the ~/comp directory, switched to the top level source directory and ran: > > sh configure -de -Duse64bitint -Dprefix=~/myperl > > That seemed to run ok - so I then ran 'make'. That process runs for a while > but terminates with the following error: > > --------------------------- > Making DynaLoader (static_pic) > make[1]: Entering directory `/home/Rob/comp/perl-5.10.0/ext/DynaLoader' > make[1]: Leaving directory `/home/Rob/comp/perl-5.10.0/ext/DynaLoader' > make[1]: Entering directory `/home/Rob/comp/perl-5.10.0/ext/DynaLoader' > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > ERROR: Can't create '../../lib/auto' > Do not have write permissions on '/' > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > at -e line 1 > ---------------------------- > > I find that somewhat confusing. For a start, I find that '../../lib/auto' > exists - so either it *was* succesfully created, or there was no need to > create it anyway. (At least, `/home/Rob/comp/perl-5.10.0/lib/auto' exists - > and, by my reckoning, that equates to '../../lib/auto'.) > > As for not having write permissions on '/', what directory is that referring > to ? Same issue here. On Vista, with UAC enabled, I used the packaged perl 5.10 and Tk and tried to install Devel::ptkdb with cpan. No dice. Tried to do it manually via perl Makefile.PL make make test make install At make, I got this: matthew AT mopvs ~/.cpan/sources/authors/id/A/AE/AEPAGE/Devel-ptkdb-1.1091 $ make !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR: Can't create 'blib/lib/auto' Do not have write permissions on '/' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! at -e line 1 make: *** [pm_to_blib] Error 136 My cygwin lives at c:\opt\cygwin. A list of of / reveals: matthew AT mopvs / $ ls -alrt total 141 dr-xr-xr-x 1 0 root 0 Dec 31 1969 cygdrive dr-xr-xr-x 1 matthew None 0 Nov 30 2006 proc drwxrwxrwx+ 3 matthew None 0 Sep 16 2007 home dr-xr-x---+ 7 matthew Users 0 Mar 15 00:24 var drwxrwx---+ 2 matthew Users 0 Mar 15 00:24 dev drwxrwx---+ 16 matthew Users 4096 Mar 15 01:14 usr d---------+ 7 matthew None 4096 Mar 17 01:18 src d---------+ 13 matthew None 4096 Mar 17 20:53 .. d---------+ 13 matthew None 4096 Mar 17 20:53 . ## <= this is / ----------+ 1 matthew None 1086 Mar 17 20:53 Mortens Cygwin X-Launcher.lnk -rwxrwx---+ 1 matthew Users 81 Mar 17 20:59 Cygwin.bat drwxrwxrwt+ 3 matthew Users 0 Mar 17 21:13 tmp drwxrwx---+ 12 matthew Users 4096 Mar 17 22:43 etc drwxrwx---+ 2 matthew Users 90112 Mar 17 22:43 bin drwxrwx---+ 15 matthew Users 20480 Mar 17 22:43 lib -rwxrwx---+ 1 matthew Users 7022 Mar 17 22:45 Cygwin.ico Why is / set to 000??? Well after a bit of googling around, the answer is this: 1) In a Windows cmd command prompt, cd where your cygwin lives - mine is at c:\opt\cygwin 2) cd .. 3) attrib -r cywgin - that removed the read-only bit. Don't try it in Windows Explorer; it does not "stick" 4) Then in a Cygwin window, cd / 5) chmod 777 . Now, you should be set. I did the install and got no 'cannot write to /' errors. Enjoy > > Interestingly, Google turns up a very similar case ( > http://www.nntp.perl.org/group/perl.perl5.porters/2007/03/msg121921.html ) > but that relates to buildng bleadperl on SuSE 64 ... and no resolution is > given. > > There's no such problem with building perl-5.8.8 from source (using the > exact same configure command). The first time I ran it 'make' terminated > after a few minutes because ~/myperl/bin didn't already exist, so I simply > created that directory, re-ran 'make' and all then proceeded smoothly. (I > didn't go to the bother of running 'make test'.) > > Cheers, > Rob > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Matthew O. Persico -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/