Question
I've had lots of problems trying to install
YetAnotherDBCacheContrib (and the
YetAnotherXpTrackerPlugin). With a virgin installation of TWiki 4.1.2 to /var/www/twikikae (a test location), I have clicked on 'Install' from the configure/plugins page. The output I get is:
Fetching http://twiki.org/p/pub/Plugins/YetAnotherDBCacheContrib/YetAnotherDBCacheContrib.tgz...
Warning: I can't install http://twiki.org/p/pub/Plugins/YetAnotherDBCacheContrib/YetAnotherDBCacheContrib.tgz
because I don't recognise the download as a gzip file.
Warning: Extension may not have been packaged correctly. Trying for a .zip file instead.
Fetching
http://twiki.org/p/pub/Plugins/YetAnotherDBCacheContrib/YetAnotherDBCacheContrib.zip...
Unpacking...
.
.
.
test/unit/DBCacheContrib/SearchTest.pm
test/unit/DBCacheContrib/testDB.dat
Error: Failed to move file 'lib/TWiki/Contrib/DBCacheContrib/' to /var/www/twikikae/lib/TWiki/Contrib/DBCacheContrib: Is a directory
Software error:
Installation terminated at /var/www/twikikae/lib/TWiki/Configure/UIs/EXTEND.pm line 149.
The directory permissions and contents are as follows: I can see no reason why the file move failed, and 'is a directory' implies that the destination already exists, but as can be seen below, it doesn't:
# ls -l /var/www/twikikae/lib/TWiki/Contrib
total 44
-r--r--r-- 1 www-data www-data 92 Mar 3 2007 ClassicSkin.pm
-r--r--r-- 1 www-data www-data 1457 Mar 3 2007 JSCalendarContrib.pm
-r--r--r-- 1 www-data www-data 781 Mar 3 2007 KupuContrib.pm
-r--r--r-- 1 www-data www-data 14111 Mar 3 2007 Mailer.pm
drwxr-xr-x 2 www-data www-data 4096 Mar 3 2007 MailerContrib
-r--r--r-- 1 www-data www-data 90 Mar 3 2007 PatternSkin.pm
-r--r--r-- 1 www-data www-data 92 Mar 3 2007 TipsContrib.pm
-r--r--r-- 1 www-data www-data 500 Mar 3 2007 TwistyContrib.pm
# ls -l /var/www/twikikae/lib/TWiki/Contrib -d
drwxr-xr-x 3 www-data www-data 4096 Sep 3 16:46 /var/www/twikikae/lib/TWiki/Contrib
#
Grateful for any guidance.
--
KeithEdmunds - 03 Sep 2007
Environment
--
KeithEdmunds - 03 Sep 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
The installation failure is due to an old installer script. Just ignore the installer script, and download the zips and unpack them.
Last time I loooked, all the functionality of YetAnotherDBCacheContrib had been back-ported to
DBCacheContrib. I
do know that YetAnotherDBCacheContrib is not actively supported, so good luck getting answers on that one.
I can't comment on YetAnotherXpTrackerPlugin.
--
CrawfordCurrie - 03 Sep 2007
Thanks, but that hasn't helped very much. I downloaded and ran
DBCacheContrib_installer. Here's proof, when I try to run it again:
# perl DBCacheContrib_installer
### DBCacheContrib Installer ###
This installer must be run from the root directory of your TWiki
installation.
* The script will not do anything without asking you for
confirmation first (unless you used -a).
* You can abort the script at any point and re-run it later
* If you answer 'no' to any questions you can always re-run
the script again later
##########################################################
Checking dependency on Time::ParseDate....
##########################################################
Checking dependency on Storable....
DBCacheContrib version $Rev: 13562 (28 Apr 2007) $ is already installed. Are you sure you want to re-install this module? [y/n] n
#
So now I downloaded and ran
YetAnotherXpTrackerPlugin_installer:
# perl YetAnotherXpTrackerPlugin_installer
### YetAnotherXpTrackerPlugin Installer ###
This installer must be run from the root directory of your TWiki
installation.
* The script will not do anything without asking you for
confirmation first (unless you used -a).
* You can abort the script at any point and re-run it later
* If you answer 'no' to any questions you can always re-run
the script again later
##########################################################
Checking dependency on TWiki::Plugins::EditHiddenTablePlugin....
##########################################################
Checking dependency on TWiki::Plugins::DBCacheContrib....
*** YetAnotherXpTrackerPlugin depends on perl package TWiki::Plugins::DBCacheContrib >=0
which is described as "Required. Download and install from [[TWiki:Plugins/YetAnotherDBCacheContrib][plugin library]]."
But when I tried to find it I got this error:
Can't locate TWiki/Plugins/DBCacheContrib.pm
Would you like me to try to download and install the latest version of DBCacheContrib from twiki.org? [y/n] n
##########################################################
Checking dependency on TWiki::Plugins::ControlsPlugin....
##########################################################
Checking dependency on HTTP::Date....
##########################################################
Checking dependency on Time::CTime....
Fetching the archive for TWiki::Plugins::YetAnotherXpTrackerPlugin.
Downloaded archive from http://twiki.org/p/pub/Plugins to ./YetAnotherXpTrackerPlugin..tgz
Could not create filehandle for './YetAnotherXpTrackerPlugin..tgz': No such file or directory! at YetAnotherXpTrackerPlugin_installer line 662
No data could be read from file at YetAnotherXpTrackerPlugin_installer line 662
Could not open tar file ./YetAnotherXpTrackerPlugin..tgz
Failed to unpack archive ./YetAnotherXpTrackerPlugin..tgz
Archive unpacked
#
So: first it says it can't find
DBCacheContrib.pm, which we know is installed. Then it "can't create a filehandle" for the tgz file, which has been downloaded and exists.
Why is this so damn hard? Am I doing something stupid?
--
KeithEdmunds - 05 Sep 2007
--
KeithEdmunds - 05 Sep 2007
Sorry, closing this question after more than 30 days of inactivity. Feel free to re-open if needed.
--
PeterThoeny - 18 Oct 2007