|
From: doug r. <do...@ar...> - 2007-03-05 04:41:56
|
Jamie, Not sure I understand you. I downloaded the rpm and successfully upgraded at the command line: [root@server] rpm -Fvh webmin-1.330-1.noarch.rpm Attempting to upgrade from the "Upgrade Webmin" module failed, with the errors posted. Doug On 7:06 pm 04 Mar 2007 " Jamie Cameron " <jca...@we...> wrote: > Hi Doug, > > The problem here is that RPM extracts the post-install scripts from the > package to files under /var/tmp, and then tries to execute them. > However, this isn't going to work on your system if /tmp is mounted > noexec :-( > > Since it is RPM that chooses this path and not Webmin, there isn't much > that the Webmin package can do about it.. > > - Jamie > > On 4/Mar/2007 14:13 doug robbins wrote .. > > Different topic but the same issue (hard-coded tmp directory). Tried > > upgrading Webmin from > > within Webmin and got this: > > > > ------------------------------- > > .. download complete. > > Package signature verified succesfully. > > > > Running RPM to upgrade Webmin .. Please wait a minute until it is > > complete before continuing. > > > > /var/tmp/rpm-tmp.15565: line 26: /tmp/.webmin/15696.check: No such > > file or directory > > /var/tmp/rpm-tmp.15565: line 537: /tmp/.webmin/15696.check: No such > > file or directory > > error: %pre(webmin-1.330-1.noarch) scriptlet failed, exit status 1 > > error: install: %pre scriptlet failed (2), skipping webmin-1.330-1 > > ------------------------------- > > > > As my /tmp is mounted noexec, I've set a different tmp directory > > within Webmin > > (/var/.webmin), but the upgrade doesn't use it. Guess I'll go get the > > rpm :) > > > > Doug > > > > On 01/27/2007 8:39 PM, Jamie Cameron wrote: > > > > > This is actually a bug in Webmin - the Perl Modules installation > > > code assumes that you will use /tmp/.webmin as your temp files > > > directory, > > regardless > > > of the configuration on the Advanced Options page! > > > > > > I will fix this in the next release.. or to work around it now, you > > > can edit the file cpan/install.cgi under the Webmin root directory > > > (tyically /usr/libexec/webmin) and change the line containing > > > /tmp/.webmin to /var/.webmin > > . > > > > > > - Jamie > > > > > > On 27/Jan/2007 13:27 doug robbins wrote .. > > >> First attempt today at installing a perl module from Webmin. It > > >> failed, though the reason > > >> seemed clear enough: my /tmp directory is mounted noexec and the > > >> build script failed. So I > > >> set a different tmp directory (/var/.webmin) in Webmin > > >> Configuration > > -> > > >> Advanced Options. > > >> Also, I set the same tmp dir for "Perl Modules" in "Per-module > > >> temporary directories". > > >> > > >> Then I retried the perl module installation (I'm trying to install > > >> File::Tail for which > > >> Time::HiRes is a prerequisite). I got this output in Webmin: > > >> > > >> ------------------ > > >> > > >> Making, testing and installing Time::HiRes .. > > >> > > >> Untarring module file > > >> > > >> Executing gunzip -c /var/.webmin/Time-HiRes-1.9704.tar.gz | tar xvf > > - .. > > >> > > >> Time-HiRes-1.9704/ > > >> Time-HiRes-1.9704/hints/ > > >> Time-HiRes-1.9704/hints/sco.pl > > >> Time-HiRes-1.9704/hints/svr4.pl > > >> Time-HiRes-1.9704/hints/aix.pl > > >> Time-HiRes-1.9704/hints/dec_osf.pl > > >> Time-HiRes-1.9704/hints/solaris.pl > > >> Time-HiRes-1.9704/hints/dynixptx.pl > > >> Time-HiRes-1.9704/hints/irix.pl > > >> Time-HiRes-1.9704/Changes > > >> Time-HiRes-1.9704/MANIFEST > > >> Time-HiRes-1.9704/typemap > > >> Time-HiRes-1.9704/TODO > > >> Time-HiRes-1.9704/HiRes.pm > > >> Time-HiRes-1.9704/fallback/ > > >> Time-HiRes-1.9704/fallback/const-c.inc > > >> Time-HiRes-1.9704/fallback/const-xs.inc > > >> Time-HiRes-1.9704/HiRes.xs > > >> Time-HiRes-1.9704/ppport.h > > >> Time-HiRes-1.9704/META.yml > > >> Time-HiRes-1.9704/t/ > > >> Time-HiRes-1.9704/t/HiRes.t > > >> Time-HiRes-1.9704/README > > >> Time-HiRes-1.9704/Makefile.PL > > >> > > >> Compiling module > > >> > > >> Executing /usr/bin/perl Build.PL && ./Build .. > > >> > > >> sh: line 0: cd: /var/.webmin/Time-HiRes-1.9704: No such file or > > >> directory Can't open perl script "Build.PL": No such file or > > >> directory. Use -S to search $PATH for it. > > >> > > >> -------------------------- > > >> > > >> Back in the shell I see: > > >> > > >> [root] ls -al /var/.webmin > > >> total 106 > > >> drwxr-xr-x 2 root root 1024 Jan 27 15:20 . > > >> drwxr-xr-x 23 root root 1024 Jan 27 15:03 .. > > >> -rw-r--r-- 1 root root 22800 Jan 27 15:20 File-Tail-0.99.3.tar.gz > > >> -rw-r--r-- 1 root root 80330 Jan 27 15:20 > > >> Time-HiRes-1.9704.tar.gz [root] ls -al /tmp/.webmin > > >> total 7 > > >> drwxr-xr-x 3 root root 1024 Jan 27 15:13 . > > >> drwxrwxrwt 5 root root 1024 Jan 27 15:21 .. > > >> drwxr-xr-x 5 15033 users 1024 Jan 1 11:34 Time-HiRes-1.9704 > > >> > > >> The Time-HiRes-1.9704.tar.gz tarball is being extracted to > > >> /tmp/.webmin instead of > > >> /var/.webmin, causing the Build.PL error & failure. > > >> > > >> Any ideas how to resolve? > > >> > > >> Thanks, > > >> > > >> Doug > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn > cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list |