Re: first install of RefDB .debs
Dan O'Donnell <[email protected]>
| Newsgroups | gmane.text.refdb.general |
|---|---|
| Organization | Department of English, University of Lethbridge |
| Message-ID | <[email protected]> |
This whole thread has been interesting to me for several reasons, not least of which is that I have needed to get a number of installations running. I came to refdb from Procite and old commercial Mac/Win citation manager from the publisher of Endnote that is nearing the end of its useful life (the procite list is busy discussing whether it is now time to get out). One of the results of playing around with these many installations is that I am understanding why commercial programs like Oxygen or Crossover Office tend to skip the whole distro specific thing (or offer rpms only) in favour of, as far as I can tell, building from source using a script. Synapsen does it as well, and it is a joy to install, though a much more limited program. I wonder if something like this would be useful for refdb? Installation is an issue for newbies, I think--perhaps even more so in the case of refdb because it is so powerful and feature laden. The two improvements I think a newbie would get the most help from would be an easier installation and of course the old chestnut of a web-based interface (please not that this is not a negative criticism! I really love using refdb--I'm just thinking what it would take for me to recommend it to colleagues who are not more than basically computer literate). So anyway I threw together a bash script last night that takes me from a clean distro install to the end of refdb-init.sh, configuring the sources installations for debian and setting up the perl. It isn't pretty (It would be better with zenity or something), but it does the job. It also seems to me that it could be extended to cover other distros with relative ease, since the main issue when installing from source is matching the preferred location of lib files and bins. A bigger issue would be maintenance, since there are quite a number of specific files that will of course change over time. But I suppose the script could go in releases. I'm so new at this that I probably am missing something crucial. What has been striking in the last week or so with my interactions with both refdb and yaz, however, is the extent to which cutting edge programs seem to have trouble with distro packages. It seems to me it might be better to take a page out of the commercial developers book and offer a set up script that takes care of things on the basis of a couple of responses. I'm copying the script out here in case anybody else is interested in seeing it. It is still quite rough and has only been tested on my machines, so I wouldn't use it on a crucial server! I really should add more abort points, for example. -8<------ #!/bin/sh echo "=============================================" echo " /home/dan/installrefdb.sh" echo "" echo "" echo " This script installs refdb " echo " from source" echo " on Debian/Ubuntu" echo " systems" echo "" echo "=============================================" echo "" echo "" echo " Are you sure that you want to begin?" echo " [y/N]" read answer echo "" answer=$answer if [ ! "$answer" = "y" ] then echo "Aborting" exit fi echo "" echo "Step 1:" echo "Ensure that the community and multiverse repositories are enabled in /etc/apt/sources.list" echo "" echo "To do this, open /etc/apt/sources.list in your favorite editor (e.g. nano or gedit)" echo "and remove the # sign from in front of the community and universe repositories" echo "(see also: http://ubuntuguide.org/wiki/Dapper#How_to_add_extra_repositories)" echo "" echo "" echo " Have you enabled the necessary repositories?" echo " [y/N]" read answer echo "" answer=$answer if [ ! "$answer" = "y" ] then echo "Aborting... please start again" exit fi echo "" echo "" echo "Step 2:" echo "Installing the necessary binaries (type your adminstrative password if requested)..." echo "" echo "sudo apt-get install make mysql-client mysql-server libmysqlclient15-dev zlib1g-dev libbtparse0 libbtparse-dev libreadline5-dev gcc libexpat1-dev" sudo apt-get install make mysql-client mysql-server libmysqlclient15-dev zlib1g-dev libbtparse0 libbtparse-dev libreadline5-dev gcc libexpat1-dev echo "" echo "Step 3:" echo "Set up an adminstrative password for mysql..." echo "" echo "Would you like to set up an administrative username and password for mysql? (y/n)" read answer echo "" answer=$answer if [ "$answer" = "y" ] then echo "What username would you like (root is fine)?" read answer echo "" name=$answer echo "What password would you like this account to have?" read answer echo "" password=$answer echo "" echo "mysqladmin -u $name password '$password'" mysqladmin -u $name password '$password' fi echo "Step 4:" echo "Get and install files..." echo "wget http://umn.dl.sourceforge.net/sourceforge/libdbi/libdbi-0.8.1.tar.gz && tar zxvf libdbi-0.8.1.tar.gz && cd libdbi-0.8.1/ && ./configure --prefix=/usr && make && sudo make install && cd .. && wget http://umn.dl.sourceforge.net/sourceforge/libdbi-drivers/libdbi-drivers-0.8.1a.tar.gz && tar zxvf libdbi-drivers-0.8.1a.tar.gz && cd libdbi-drivers-0.8.1/ && ./configure --prefix=/usr --with-mysql && make && sudo make install && cd .. && wget http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/MARC-Record-1.38.tar.gz http://search.cpan.org/CPAN/authors/id/R/RB/RBERJON/XML-NamespaceSupport-1.09.tar.gz http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-SAX-0.14.tar.gz http://search.cpan.org/CPAN/authors/id/K/KA/KASEI/Class-Accessor-0.25.tar.gz http://search.cpan.org/CPAN/authors/id/E/ES/ESUMMERS/MARC-Charset-0.95.tar.gz http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz http://search.cpan.org/CPAN/authors/id/M/MP/MPIOTR/Text-Iconv-1.4.tar.gz http://superb-east.dl.sourceforge.net/sourceforge/refdb/RefDB-perlmod-0.4.1.tar.gz && tar zxvf MARC-Record-1.38.tar. gz && tar zxvf XML-NamespaceSupport-1.09 && tar zxvf Class-Accessor-0.25 && tar zxvf XML-S AX-0.14.tar.gz && tar zxvf MARC-Charset-0.95.tar.gz && tar zxvf XML-Parser-2.34.tar.gz && tar zxvf Text-Iconv-1.4.tar.gz && tar zxvf RefDB-perlmod-0.4.1.tar.gz && cd MARC-Record-1.38 && perl Makefile.PL && make && sudo make install && cd ../XML-NamespaceSupport-1.09 && perl Makefile.PL && make && sudo make install && cd ../XML-SAX-0.14 && perl Makefile.PL && make && sudo make install && cd ../Class-Accessor-0.25 && perl Makefile.PL && make && sudo make install && cd ../MARC-Charset-0.95 && perl Makefile.PL && make && sudo make install && cd ../XML-Parser-2.34 && perl Makefile.PL && make && sudo make install && cd ../Text-Iconv-1.4 && perl Makefile.PL && make && sudo make install && cd ../RefDB-perlmod-0.4.1 && perl Makefile.PL && make && sudo make install && cd ../ && wget http://refdb.sourceforge.net/pre/refdb-latest.tar.gz && tar zxvf refdb-latest.tar.gz && cd refdb-0.9.7-pre7/ && ./c onfigure --sysconfdir=/etc --with-refdb-url=http://localhost/refdb --prefix=/usr && make & & sudo make install && cd .." wget http://umn.dl.sourceforge.net/sourceforge/libdbi/libdbi-0.8.1.tar.gz && tar zxvf libdbi-0.8.1.tar.gz && cd libdbi-0.8.1/ && ./configure --prefix=/usr && make && sudo make install && cd .. && wget http://umn.dl.sourceforge.net/sourceforge/libdbi-drivers/libdbi-drivers-0.8.1a.tar.gz && tar zxvf libdbi-drivers-0.8.1a.tar.gz && cd libdbi-drivers-0.8.1/ && ./configure --prefix=/usr --with-mysql && make && sudo make install && cd .. && wget http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/MARC-Record-1.38.tar.gz http://search.cpan.org/CPAN/authors/id/R/RB/RBERJON/XML-NamespaceSupport-1.09.tar.gz http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-SAX-0.14.tar.gz http://search.cpan.org/CPAN/authors/id/K/KA/KASEI/Class-Accessor-0.25.tar.gz http://search.cpan.org/CPAN/authors/id/E/ES/ESUMMERS/MARC-Charset-0.95.tar.gz http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz http://search.cpan.org/CPAN/authors/id/M/MP/MPIOTR/Text-Iconv-1.4.tar.gz http://superb-east.dl.sourceforge.net/sourceforge/refdb/RefDB-perlmod-0.4.1.tar.gz && tar zxvf MARC-Record-1.38.tar. gz && tar zxvf XML-NamespaceSupport-1.09.tar.gz && tar zxvf Class-Accessor-0.25.tar.gz && tar zxvf XML-SAX-0.14.tar.gz && tar zxvf MARC-Charset-0.95.tar.gz && tar zxvf XML-Parser-2.34.tar.gz && tar zxvf Text-Iconv-1.4.tar.gz && tar zxvf RefDB-perlmod-0.4.1.tar.gz && cd MARC-Record-1.38 && perl Makefile.PL && make && sudo make install && cd ../XML-NamespaceSupport-1.09 && perl Makefile.PL && make && sudo make install && cd ../XML-SAX-0.14 && perl Makefile.PL && make && sudo make install && cd ../Class-Accessor-0.25 && perl Makefile.PL && make && sudo make install && cd ../MARC-Charset-0.95 && perl Makefile.PL && make && sudo make install && cd ../XML-Parser-2.34 && perl Makefile.PL && make && sudo make install && cd ../Text-Iconv-1.4 && perl Makefile.PL && make && sudo make install && cd ../RefDB-perlmod-0.4.1 && perl Makefile.PL && make && sudo make install && cd ../ && wget http://refdb.sourceforge.net/pre/refdb-latest.tar.gz && tar zxvf refdb-latest.tar.gz && cd refdb-0.9. 7-pre7/ && ./configure --sysconfdir=/etc --with-refdb-url=http://localhost/refdb --prefix= /usr && make && sudo make install && cd .. echo "" echo "" echo "Now running the installation script. Please answer all questions..." echo "" echo "cd /usr/local/bin/ && sudo refdb-init.sh" cd /usr/local/bin/ && sudo refdb-init.sh echo "" echo "If you had no error messages, your installation was successful. Enjoy!" -->8----- I through together a bash script last night that takes you from a clean install to the conclusion of the refdb-init.sh script, setting up your On Fri, 2006-07-07 at 16:05 +0200, Markus Hoenicka wrote: > doug <[email protected]> was heard to say: > > > It almost went off without a hitch but for some reason > > I was missing a /var/lib/refdb/db/DB_VERSION file which your install > > script complained about in a big blue voice. > > > > I wasn't exactly sure how to convince refdbd to produce one for me > > but discovered I had one lurking in /usr/local/var/lib.... > > > > According to Subversion I've fixed this problem 12 days ago. This was probably > too late for the prerelease you're testing, but this problem should no longer > show up in the .debs built from the svn version. > > regards, > Markus > Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642