Skip Menu |
 

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 70685
Status: open
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: zuz17 [...] psu.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Prompt for sudo password and installation fails
Date: Thu, 1 Sep 2011 17:39:00 -0400
To: bug-cpanplus [...] rt.cpan.org
From: "Zhenguo Zhang" <zuz17 [...] psu.edu>
Download (untitled) / with headers
text/plain 1.2k
Dear CPANPLUS team, I am trying to install perl packages with cpanp program. However, it always prompts for sudo password, although my installation folder is owned by myself. After I input the password, if failed with some error message. I tried installation of the same package with CPAN, which did not trigger any problem. I have no idea the underlying reason. The following is my system information and the error message for installing 'Module::Pluggable' as one example is attached. Perl: v5.8.8 built for x86_64-linux-thread-multi CPANPLUS: version 0.9109 System: Linux homeo.bio 2.6.18-238.19.1.el5 #1 SMP Fri Jul 15 07:31:24 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux My cpanplus configuration file user.pm is also attached. Please let me know if I do something wrong. Actually, I was installing normal packages, which should go to my preset private folders. I do not know why the sudo command was invoked. Thank you in advance. Best wishes! Zhenguo ************************************************************** Zhenguo Zhang Postdoctoral Scholar Institute of Molecular Evolutionary Genetics Penn State University 312 Mueller Lab University Park, PA 16802 Tel: 814-865-1034 Homepage: <http://www.personal.psu.edu/zuz17/> Lab page: <http://homes.bio.psu.edu/people/Faculty/Nei/>
Download User.pm
text/x-perl 3.1k

Message body is not shown because sender requested not to inline it.

Download Module-Pluggable-3.9-1314912653.log
application/octet-stream 11.5k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #70685] Prompt for sudo password and installation fails
Date: Fri, 2 Sep 2011 08:32:38 +0100
To: Zhenguo Zhang via RT <bug-CPANPLUS [...] rt.cpan.org>
From: "Chris 'BinGOs' Williams" <chris [...] bingosnet.co.uk>
Download (untitled) / with headers
text/plain 1.4k
On Thu, Sep 01, 2011 at 05:39:13PM -0400, Zhenguo Zhang via RT wrote: Show quoted text
> Thu Sep 01 17:39:12 2011: Request 70685 was acted upon. > Transaction: Ticket created by zuz17@psu.edu > Queue: CPANPLUS > Subject: Prompt for sudo password and installation fails > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: zuz17@psu.edu > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=70685 > > > > Dear CPANPLUS team, > > I am trying to install perl packages with cpanp program. However, it always > prompts for sudo password, although my installation folder is owned by myself.
If 'sudo' is configured it will be used for installation regardless of where one is trying to install to or not. This may be considered a bug. The use of 'sudo' was probably 'auto-configured' for you as you don't have write access to the perl installation. You may remove the 'sudo' option from your configuration: CPAN Terminal> s program sudo Key 'sudo' was set to '' CPAN Terminal> s save Configuration successfully saved to CPANPLUS::Config::User Are you using local::lib or some such to point to your installation folder ? I should be able to make CPANPLUS::Dist::MM / CPANPLUS::Dist::Build detect this and not use 'sudo' if it has been configured. Many thanks, -- Chris Williams aka BinGOs PGP ID 0x4658671F http://www.gumbynet.org.uk ==========================
Download (untitled)
application/pgp-signature 189b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #70685] Prompt for sudo password and installation fails
Date: Fri, 2 Sep 2011 10:02:28 -0400
To: "chris [...] bingosnet.co.uk via RT" <bug-CPANPLUS [...] rt.cpan.org>, chris [...] bingosnet.co.uk
From: "Zhenguo Zhang" <zuz17 [...] psu.edu>
Download (untitled) / with headers
text/plain 2.8k
Hi Chris, Thank you for quick reply. I followed your instruction and set 'sudo' to ''. Now when I tried to install module DBD::SQLite, it stopped at stage of make install, see attached log file for more details. In fact, I have the permission to write to the installation folder, here /data/perllib, because I am the owner and CPAN can install modules successfully. Another issue is how to specify the installation folder for cpanplus. I do not use local::lib. Instead following the convention of CPAN, I give the information to argument 'buildflags' with '--install_base /data/perllib --install_path lib=/data/perllib/lib --install_path arch=/data/perllib/lib/x86_64-linux-thread-multi' and also to the argument 'makemakerflags' with 'PREFIX=/data/perllib LIB=/data/perllib/lib INSTALLMAN1DIR=/data/perllib/man1 INSTALLMAN3DIR=/data/perllib/man3'. Do these make sense to cpanplus? Please let me know if I did something wrong. Thank you in advance. Have a nice day! Zhenguo On Fri, Sep 2, 2011 03:32 AM, "chris@bingosnet.co.uk via RT" <bug-CPANPLUS@rt.cpan.org> wrote: Show quoted text
>
URL: https://rt.cpan.org/Ticket/Display.html?id=70685 > Show quoted text
> >On Thu, Sep 01, 2011 at 05:39:13PM -0400, Zhenguo Zhang via RT wrote:
>> Thu Sep 01 17:39:12 2011: Request 70685 was acted upon. >> Transaction: Ticket created by zuz17@psu.edu >> Queue: CPANPLUS >> Subject: Prompt for sudo password and installation fails >> Broken in: (no value) >> Severity: (no value) >> Owner: Nobody >> Requestors: zuz17@psu.edu >> Status: new >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=70685 > >> >> >> Dear CPANPLUS team, >> >> I am trying to install perl packages with cpanp program. However, it always >> prompts for sudo password, although my installation folder is owned by
>myself. > >If 'sudo' is configured it will be used for installation regardless of where
one Show quoted text
>is trying to install to or not. This may be considered a bug. > >The use of 'sudo' was probably 'auto-configured' for you as you don't have >write access >to the perl installation. > >You may remove the 'sudo' option from your configuration: > > CPAN Terminal> s program sudo > > Key 'sudo' was set to '' > CPAN Terminal> s save > > Configuration successfully saved to CPANPLUS::Config::User > >Are you using local::lib or some such to point to your installation folder ? > >I should be able to make CPANPLUS::Dist::MM / CPANPLUS::Dist::Build detect this >and not use 'sudo' if it has been configured. > >Many thanks, > >-- >Chris Williams >aka BinGOs >PGP ID 0x4658671F >http://www.gumbynet.org.uk >========================== > >
************************************************************** Zhenguo Zhang Postdoctoral Scholar Institute of Molecular Evolutionary Genetics Penn State University 312 Mueller Lab University Park, PA 16802 Tel: 814-865-1034 Homepage: <http://www.personal.psu.edu/zuz17/> Lab page: <http://homes.bio.psu.edu/people/Faculty/Nei/>
Download DBD-SQLite-1.33-1314971773.log
application/octet-stream 15k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #70685] Prompt for sudo password and installation fails
Date: Fri, 2 Sep 2011 22:04:01 +0100
To: Zhenguo Zhang via RT <bug-CPANPLUS [...] rt.cpan.org>
From: "Chris 'BinGOs' Williams" <chris [...] bingosnet.co.uk>
Download (untitled) / with headers
text/plain 1.5k
On Fri, Sep 02, 2011 at 10:02:46AM -0400, Zhenguo Zhang via RT wrote: Show quoted text
> Queue: CPANPLUS > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=70685 > > > Hi Chris, > > Thank you for quick reply. I followed your instruction and set 'sudo' to ''. > Now when I tried to install module DBD::SQLite, it stopped at stage of make > install, see attached log file for more details. > > In fact, I have the permission to write to the installation folder, here > /data/perllib, because I am the owner and CPAN can install modules > successfully. > > Another issue is how to specify the installation folder for cpanplus. I do not > use local::lib. Instead following the convention of CPAN, I give the > information to argument 'buildflags' with '--install_base /data/perllib > --install_path lib=/data/perllib/lib --install_path > arch=/data/perllib/lib/x86_64-linux-thread-multi' and also to the argument > 'makemakerflags' with 'PREFIX=/data/perllib LIB=/data/perllib/lib > INSTALLMAN1DIR=/data/perllib/man1 INSTALLMAN3DIR=/data/perllib/man3'. Do these > make sense to cpanplus? >
They should make sense. Unfortunately the logfile didn't seem to include what happened at the 'install' stage. I'll have to have a go with these settings. I have a feeling that INSTALL_BASE might be a better argument for 'makemakerflags' than the others. Try that. As a result of your original issue regarding 'sudo' I'm working through making some changes to detect this type of scenario and do the right thing[tm] Many thanks, -- Chris Williams aka BinGOs PGP ID 0x4658671F http://www.gumbynet.org.uk ==========================
Download (untitled)
application/pgp-signature 189b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #70685] Prompt for sudo password and installation fails
Date: Fri, 2 Sep 2011 18:06:27 -0400
To: "chris [...] bingosnet.co.uk via RT" <bug-CPANPLUS [...] rt.cpan.org>, chris [...] bingosnet.co.uk
From: "Zhenguo Zhang" <zuz17 [...] psu.edu>
Download (untitled) / with headers
text/plain 3.1k
Hi Chris, I just tried to set makemakerflags => 'INSTALL_BASE=/data/perllib PREFIX=/data/perllib LIB=/data/perllib/lib INSTALLMAN1DIR=/data/perllib/man1 INSTALLMAN3DIR=/data/perllib/man3'. In fact, it did not take effect. The problem still showed. The screen information is "Files=62, Tests=1439, 18 wallclock secs ( 0.49 usr 1.13 sys + 4.60 cusr 5.34 csys = 11.56 CPU) Result: PASS [MSG] Sending test report for 'DBD-SQLite-1.33' [MSG] Successfully sent 'pass' report for 'DBD-SQLite-1.33' Running [/usr/bin/make install]... Caught SIGINT [ERROR] MAKE INSTALL failed: Bad file descriptor *** Install log written to: /home/zhangzg/.cpanplus/install-logs/DBD-SQLite-1.33-1315000882.log Error installing 'DBD::SQLite' Problem installing one or more modules" I killed the installation process by Ctrl+C, because it stopped at 'make install'. I guess it needed sudo command and password. Since the sudo is '', the program did not know what to do. I hope that the above information is useful for you to fix the problem. Have a good weekend! Zhenguo On Fri, Sep 2, 2011 05:04 PM, "chris@bingosnet.co.uk via RT" <bug-CPANPLUS@rt.cpan.org> wrote: Show quoted text
>
URL: https://rt.cpan.org/Ticket/Display.html?id=70685 > Show quoted text
> >On Fri, Sep 02, 2011 at 10:02:46AM -0400, Zhenguo Zhang via RT wrote:
>> Queue: CPANPLUS >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=70685 > >> >> Hi Chris, >> >> Thank you for quick reply. I followed your instruction and set 'sudo' to
>''.
>> Now when I tried to install module DBD::SQLite, it stopped at stage of make >> install, see attached log file for more details. >> >> In fact, I have the permission to write to the installation folder, here >> /data/perllib, because I am the owner and CPAN can install modules >> successfully. >> >> Another issue is how to specify the installation folder for cpanplus. I do
>not
>> use local::lib. Instead following the convention of CPAN, I give the >> information to argument 'buildflags' with '--install_base /data/perllib >> --install_path lib=/data/perllib/lib --install_path >> arch=/data/perllib/lib/x86_64-linux-thread-multi' and also to the argument >> 'makemakerflags' with 'PREFIX=/data/perllib LIB=/data/perllib/lib >> INSTALLMAN1DIR=/data/perllib/man1 INSTALLMAN3DIR=/data/perllib/man3'. Do
>these
>> make sense to cpanplus? >>
> >They should make sense. Unfortunately the logfile didn't seem to include what >happened at the 'install' stage. > >I'll have to have a go with these settings. I have a feeling that INSTALL_BASE >might be a better argument for 'makemakerflags' than the others. Try that. > >As a result of your original issue regarding 'sudo' I'm working through making >some changes to detect this type of scenario and do the right thing[tm] > >Many thanks, > >-- >Chris Williams >aka BinGOs >PGP ID 0x4658671F >http://www.gumbynet.org.uk >========================== > >
************************************************************** Zhenguo Zhang Postdoctoral Scholar Institute of Molecular Evolutionary Genetics Penn State University 312 Mueller Lab University Park, PA 16802 Tel: 814-865-1034 Homepage: <http://www.personal.psu.edu/zuz17/> Lab page: <http://homes.bio.psu.edu/people/Faculty/Nei/>


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.