Jani Reinikainen wrote:

> I still haven't got Midgard installed on my Debian Sid system, although 
> I have gotten a bit further all the time :) There are three text files 
> attached, one with all the commands I've run and the two other with the 
> errors. Any help on this would be wonderful. Thanks for your time.
> 
> Installing Asgard...
...
> Your selection: 2
> Message: Reading config file install-repligard.conf
> midgard-lib: mgd_connect to midgard@midgard failed: Can't connect to local MySQL 
>server through socket '/var/run/mysqld/mysqld.sock' (2)

Does this socket exist, and is it readable by you?

> In file included from midgard.c:23:
> php_midgard.h:39: midgard/midgard.h: No such file or directory
> php_midgard.h:40: midgard/apache.h: No such file or directory

These should have been installed as part of midgard-lib. Do you have
old midgard-lib around? Are you sure this compilation is finding the
right include files?

> 1. Downloaded all the Midgard, MySQL, Apache, Berkeley-DB and PHP sources to a 
>directory called
>    /home/atanos/Midgard and extracted all the sources.
> 
> 2. First I installed MySQL with the commands:

... I have just done apt-get install mysql-common mysql-client
mysql-server mysql-dev. Make sure you get the shared libraries
(installing the other parts without them is possible but a pain).

> 3. Next I installed Zlib and other stuff needed for the compliation, Glib, Expat-lib 
>and the
>    Berkeley-DB libs:
> 
>    apt-get install zlib-bin zlib1 zlib1-altdev zlib1g zlib1g-dev autoconf automake 
>libtool
> 
>    cd /home/atanos/Midgard/glib-1.2.9
>    ./configure
>    make
>    make install
> 
>    cd /home/atanos/Midgard/expat-1.95.1
>    ./configure
>    make
>    make install

I installed all of these with apt-get.

>    cd /home/atanos/Midgard/db-3.2.9/build_unix
>    ../dist/configure --prefix=/usr
>    make
>    make install

Not sure why you'd need this.

> 4. I pre-configured Apache so that I could install PHP:
> 
>    cd /home/atanos/Midgard/apache_1.3.19
>    ./configure --prefix=/usr/local/apache

Got apache with apt-get.

> 5. Now I installed PHP from source and copied the config file to its correct 
>location:
> 
>    cd /home/atanos/Midgard/php-4.0.4pl1
>    ./configure --with-mysql=/usr/local/mysql --with-xml 
>--with-apache=../apache_1.3.19 \
>    --enable-track-vars --enable-ftp
>    make
>    make install
>    cp php.ini-dist /usr/local/lib/php.ini 

Is it still there? I can't check right now but I thought it had moved
to /etc.

> 8. Midgard-lib install:
> 
>    cd /home/atanos/Midgard/midgard-lib-1.4.1-5
>    ./configure --prefix=/usr/local/midgard --with-sitegroups 
>--with-mysql=/usr/local/mysql \
>    --with-expat

You don't need to specify --with-expat if you're not giving it a path.
It's only there so you can specify non-standard installation paths if
so required.

Emile


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to