my install story
|
|
By turmeric , Section Help! [] Posted on Wed Feb 13, 2002 at 12:00:00 PM PST
|
|
Hi. I spent 5 hours trying to install scoop
and have yet to see the start page. I am to
the point where I go to http://192.168.0.6/~don/scoop
and it just gives me this:
Index of /~don/scoop
Name Last modified Size Description
Parent Directory 12-Feb-2002 16:00 -
CHANGES 05-Feb-2002 14:12 5k
INSTALL 19-Jan-2002 22:00 14k
LICENSE 22-Apr-2000 20:56 15k
VERSION 05-Feb-2002 19:21 1k
cron/ 10-Feb-2002 23:37 -
. . .
Below is my more detailed story of what I went thru
to get this far.
|
read www.kuro5hin.org/faq
read scoop.kuro5hin.org
get cvs source
read INSTALL
read 'admin guide'
apt-get install mysql (doesnt work)
apt-get install mysql-server
wait a while.
read more INSTALL
read more adming guide
sudo apt-get install libapache-mod-perl
bork around looking for the 'root password' on debian mysql.
/etc/my.cnf edit the password. wrong now mysql wont start.
erase and reinstall mysql-server debian package.
/usr/share/doc/mysql/README.debian tells how. run that.
ok now what? try scoop/scripts/install.pl.
answer a whole bunch of meaningless CPAN shit i dont understand.
try to pick a mirror by pinging the ip.
tried two mirrors
ou.edu and
linuxjars.com.
ou.edu freezes on connect
linuxjars.com says no anonymous access.
finally found one that works right.
ok but then:
in the subdir 'include'. [/usr/local]
Cannot find one of include/mysql/mysql.h, include/mysql.h in
/usr/local at lib/DBD/mysql/Install.pm line 165, <STDIN> line 4.
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
Running install for module Apache::DBI
Running make for M/ME/MERGL/ApacheDBI-0.88.tar.gz
Fetching with LWP:
ftp://ruff.cs.jmu.edu/pub/CPAN/authors/id/M/ME/MERGL/ApacheDBI-0.88.tar.gzLWP failed with code[500]
message[LWP::Protocol::MyFTP: Bad
hostname 'ruff.cs.jmu.edu']
wtf?
goddamn this shit takes a long time to download over a modem.
and to compile.
. . .
URI is up to date.
HTML::Tagset is up to date.
HTML::HeadParser is up to date.
LWP::Simple is up to date.
XML::Parser is up to date.
XML::RSS is up to date.
Bundle summary: The following items in bundle Bundle::Scoop had
installation problems:
DBD::mSQL Apache::Request Apache::Session
i scroll up to see what the problem is.
Running install for module Apache::Request
Running make for J/JI/JIMW/libapreq-0.33.tar.gz
Is already unwrapped into directory
/root/.cpan/build/libapreq-0.33
Has already been processed within this session
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
Running install for module Apache::Session
Running make for J/JB/JBAKER/Apache-Session-1.54.tar.gz
Is already unwrapped into directory
/root/.cpan/build/Apache-Session-1.54
Has already been processed within this session
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;'
t/*.t
t/99base64..........ok
. . .
t/99semaphore.......ok
t/99storable........ok
t/99uue.............ok
All tests successful, 5 tests skipped.
Files=18, Tests=100, 13 wallclock secs (10.08 cusr + 0.96 csys =
11.04 CPU)
/usr/bin/make test -- OK
Running make install
Already done
Apache::Session::DBI is up to date.
Apache::SIG is up to date.
Class::Singleton is up to date.
Crypt::UnixCrypt is up to date.
well, fuck it. i will hit 'y' anyway.
oo::Bar] is up to date.", then enter yes below. Otherwise,
I'll run through that again to make sure.
Is everything up to date? y/[N] > y
Ok! You should be done with the CPAN phase of the install.
Be warned -- if you saw errors above, some modules may not
have installed right. There's no easy way for me to know
if they hav
Cool! It looks like your Apache config is all set up. I will
output this configuration file to httpd-myscoopsite.conf in this
directory. To finish configuring Apache, just write a line like
Include /path/to/httpd-myscoopsite.conf at the end of your apache
httpd.conf file. Usually that file is at
/usr/local/apache/conf/httpd.conf.
(this could be automated to give the correct path not
'path/to/blah')
/etc/initd/apache stop
edit the /etc/apache/httpd.conf file to include
/home/don/scoop/etc/httpd-localsite.conf
using this thing:
"
I couldn't find the httpd-location.conf in the default location.
Remember, this path must be absolute!
Sample httpd-location.conf?
[/home/don/scoop/etc/httpd-location.conf] >
"
root@dryes:/etc/apache# /etc/init.d/apache start
Starting web server: apacheSyntax error on line 47 of
/home/don/scoop/etc/httpd-location.conf:
Invalid command '<perl>', perhaps mis-spelled or defined by a
module not included in the server configuration
failed
dryes:/home/don/scoop# find . | grep httpd
./etc/httpd-vhost.conf
./etc/httpd-location.conf
./scripts/httpd-myscoopsite.conf
ok change /etc/apache/httpd.conf to Include httpd-myscoopsite.conf
Include /home/don/scoop/scripts/httpd-myscoopsite.conf
dryes:/home/don/scoop# /etc/init.d/apache stop
Stopping web server: apacheNo /usr/sbin/apache found running; none
killed..
dryes:/home/don/scoop# /etc/init.d/apache start
Starting web server: apacheSyntax error on line 47 of
/home/don/scoop/scripts/httpd-myscoopsite.conf:
Invalid command '<perl>', perhaps mis-spelled or defined by a
module not included in the server configuration
failed
dryes:/home/don/scoop#
hmm. do i have mod-perl installed?
dryes:/home/don/scoop# dpkg --list | grep apache
ii apache 1.3.23-1 Versatile, high-performance HTTP server ii
ii apache-common 1.3.23-1 Support files for all Apache webservers
ii libapache-mod-perl 1.26-2 Integration of perl with the Apache web server
hmm
well, nothing is helping. time to groups.google.com
ok now kde locked up.
start konqueror from the command line.
shit, the modem connection went down and now both konquerors are
locked up and i cant ctrl-c the one i started from commandline.
ok file/exit on it.groups.google.com lets try again.
now what was i looking for? something about <perl>
bingo lots of hits. too bad konqueror has decided to stop letting
me click on blue links. ah there, it let me click on them now.
1st day over.
maybe 2 hours spent.
1pm next day
put
LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so
into /etc/apache/httpd.conf on a hunch.
root@dryes:/home/don# /etc/init.d/apache start
Starting web server: apache[Tue Feb 12 13:22:30 2002] [error]
Can't locate Apache/Request.pm in @INC (@INC contains:
/home/don/scoop/lib /usr/local/lib/perl/5.6.1
/usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl
. /etc/apache/ /etc/apache/lib/perl) at
/home/don/scoop/lib/Scoop.pm line 586.
BEGIN failed--compilation aborted at /home/don/scoop/lib/Scoop.pm
line 586.
Compilation failed in require at /home/don/scoop/etc/startup.pl
line 60.
BEGIN failed--compilation aborted at
/home/don/scoop/etc/startup.pl line 60.
Compilation failed in require at (eval 9) line 1.
Syntax error on line 157 of
/home/don/scoop/scripts/httpd-myscoopsite.conf:
Can't locate Apache/Request.pm in @INC (@INC contains:
/home/don/scoop/lib /usr/local/lib/perl/5.6.1
/usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl
. /etc/apache/ /etc/apache/lib/perl) at
/home/don/scoop/lib/Scoop.pm line 586.
BEGIN failed--compilation aborted at /home/don/scoop/lib/Scoop.pm
line 586.
Compilation failed in require at /home/don/scoop/etc/startup.pl
line 60.
BEGIN failed--compilation aborted at
/home/don/scoop/etc/startup.pl line 60.
Compilation failed in require at (eval 9) line 1.
failed
root@dryes:/home/don#
Ok, so its looking for Request.pm. scrolling up i see this was
some 'error: alreay installed' during scoop/scripts/install.pm
..... in fact here it is:
root@dryes:/home/don/scoop/scripts# ls /root/.cpan/build/libapreq-0.33/Request/
Makefile Makefile.PL Request.pm Request.xs
root@dryes:/home/don/scoop/scripts#
Now what?
don@dryes:/etc/apache$ sudo rm -rf /root/.cpan/build/libapreq-0.33/
p$ cd scripts/
don@dryes:~/scoop/scripts$ su
Password:
root@dryes:/home/don/scoop/scripts# ./install.pl
answer alot of questions.
oh yeah, the 'include' stuff isnt working.
apt-get install libmysqlclient10-dev
dpkg --listfiles libmysqlclient10-dev
give it '/usr' for where mysql is installed.
forgot to startup mysql got alot of weird errors.
startup mysql, retry install.pl
answer alot of questions.
Note (probably harmless): No library found for -lgz
???
lib/libapreq.pod
cp lib/Apache/libapreq.pm blib/lib/Apache/libapreq.pm
make[1]: Entering directory `/root/.cpan/build/libapreq-0.33/c'
cc -c -I/usr/lib/perl5/auto/Apache/include
-I/usr/lib/perl5/auto/Apache/include/modules/perl -DDEBIAN
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.10\"
-DXS_VERSION=\"0.10\" -fPIC -I/usr/lib/perl/5.6.1/CORE
apache_request.c
In file included from apache_request.c:58:
apache_request.h:5: httpd.h: No such file or directory
apache_request.h:6: http_config.h: No such file or directory
apache_request.h:7: http_core.h: No such file or directory
apache_request.h:8: http_log.h: No such file or directory
apache_request.h:9: http_main.h: No such file or directory
apache_request.h:10: http_protocol.h: No such file or directory
apache_request.h:11: util_script.h: No such file or directory
make[1]: *** [apache_request.o] Error 1
make[1]: Leaving directory `/root/.cpan/build/libapreq-0.33/c'
make: *** [subdirs] Error 2
/usr/bin/make -- NOT OK
Running make test
. . .
::HeadParser is up to date.
LWP::Simple is up to date.
XML::Parser is up to date.
XML::RSS is up to date.
Bundle summary: The following items in bundle Bundle::Scoop had
installation problems:
DBD::mSQL Apache::Request
Well, I bet that was fun. The easiest way to see if all that
was successful is just to run it until you get a list of success
messages. So, if you just saw a list of output consisting entirely
of "[Foo::Bar] is up to date.", then enter yes below. Otherwise,
I'll run through that again to make sure.
Is everything up to date? y/[N] >
UGH
ok didnt work. need to what, get apache dev?
Sorry, but the following packages have unmet dependencies:
apache-dev: Depends: libdb2-dev (>= 2.7.7-2.1) but it is not
going to be installed
E: Sorry, broken packages
root@dryes:/home/don/scoop# apt-cache search httpd.h
thttpd - tiny/turbo/throttling HTTP server
root@dryes:/home/don/scoop# dpkg --list | grep apache
ii apache 1.3.23-1 Versatile, high-performance HTTP
server
ii apache-common 1.3.23-1 Support files for all Apache
webservers
ii libapache-mod- 1.26-2 Integration of perl with the
Apache web
serv
root@dryes:/home/don/scoop# apt-get install apache-common
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, apache-common is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 294 not
upgraded.root@dryes:/home/don/scoop# locate httpd.h
/usr/src/linux-2.4.17/include/config/khttpd.h
root@dryes:/home/don/scoop#
ok
where the hell is this stuff:
apache_request.h:5: httpd.h: No such file or directory
apache_request.h:6: http_config.h: No such file or directory
apache_request.h:7: http_core.h: No such file or directory
apache_request.h:8: http_log.h: No such file or directory
apache_request.h:9: http_main.h: No such file or directory
apache_request.h:10: http_protocol.h: No such file or directory
apache_request.h:11: util_script.h: No such file or directory
maybe in apache source?
cd /tmp
apt-get source apache.
Need to get 2781kB of source archives.
ok... so apache-dev is 'broken' and
apt-get source apache deosnt remind me of any
debian source pile i've ever seen (everything is
under some 'upstream' directory in gz tarballs)
so i cant remember how to compile it, nor do i care.
apt-get update
apt-get install apache-dev
(same error as before.)
ok now what? hmmm....
don@dryes:~/scoop/scripts$ sudo apt-get install libdb2-dev
don@dryes:~/scoop/scripts$ sudo apt-get install apache-dev
./install.pl
ok works better but
now i get
.
.
.
.
/50commit..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-30
Failed 30/30 tests, 0.00% okay
t/60leaks...........skipped test on this platform
t/ak-dbd............DBI->connect(database=test) failed: Access
denied for user: 'root@localhost' (Using password: NO) at
t/ak-dbd.t line 59
t/ak-dbd............ok 3/90Can't call method "func" on an
undefined value at ../tests/mysql.dbtest line 101.
t/ak-dbd............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1, 4-90
Failed 88/90 tests, 2.22% okay
t/akmisc............Mysql->connect(database=test;host=) failed:
Access denied for user: 'root@localhost' (Using password: NO) at
t/akmisc.t line 133
t/akmisc............NOK 1Cannot connect: Access denied for user:
'root@localhost' (Using password: NO)
It looks as if your server is not up and running.
This test requires a running server.
Please make sure your server is running and retry.
.
.
.
now, i cant run mysql if i am root
but i cant run install.pl if i am not root....
or is that right? wtf?
ok they say on slashdot.org#scoop i need mysql -p
but i cant because its in some script i dont know where.
ok on irc.slashdot.org#scoop they said to use the username and password from /etc/mysql/my.cnf and
that seems to work better. but
still
Bundle summary: The following items in bundle Bundle::Scoop had
installation problems:
DBD::mSQL
well
so i redo install.pl and choose 'mysql and msql' drivers option.
now it still has this:
Bundle summary: The following items in bundle Bundle::Scoop had
installation problems:
DBD::mSQL
so i just ignore mSQL error and hit y
.
now i try to start apache.
it starts.
now i try this:
http://192.168.0.6/~don/scoop
nope.
404 file not found.
[Tue Feb 12 15:52:19 2002] [error] [client 192.168.0.6] File does
not exist: /home/don/www/scoop
hrmmmmm
lets try moving /home/don/scoop into /home/don/www/scoop
and symbolic linking it.
don@dryes:~$ mv scoop www
don@dryes:~$ ln -s /home/don/www/scoop /home/don/scoop
ok now i get this:
http://192.168.0.6/~don/scoop/
Index of /~don/scoop
Name Last modified Size Description
Parent Directory 12-Feb-2002 16:00 -
CHANGES 05-Feb-2002 14:12 5k
INSTALL 19-Jan-2002 22:00 14k
LICENSE 22-Apr-2000 20:56 15k
VERSION 05-Feb-2002 19:21 1k
cron/ 10-Feb-2002 23:37 -
doc/ 10-Feb-2002 23:37 -
etc/ 10-Feb-2002 23:38 -
html/ 10-Feb-2002 23:38 -
lib/ 10-Feb-2002 23:38 -
scripts/ 11-Feb-2002 18:46 -
struct/ 10-Feb-2002 23:40 -
Apache/1.3.23 Server at 192.168.0.6 Port 80
hmmmmmm
ok now what
i spent 3 hours on this stuff today.
so i re-read scoop/INSTALL and it says to post problems to
scoop.kuro5hin.org. OK, i guess I will try that.
|
|
Story Views
|
95 Scoop users have viewed this story.
|
|