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...
Select additional languages for Asgard administrative interface. 
Following languages will be installed in any case to show Midgard's
multilingual features: 'es_ES', 'de_DE', 'fr_FR', 'nl_NL', 'hr_HR'.
Languages, listed below, use different encodings than Latin-1 and 
should be selected additionally.
You can choose one per selection and repeat selection as many times as you need.
Select 'default' only if you don't want install additional languages. 
0) ru_RU
1) default
2) exit
Your selection: 1
Current selection: default
0) ru_RU
1) default
2) exit

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)
** CRITICAL **: Error in DB connection

--------------------------------------------------------------------------------

/home/atanos/Midgard/midgard-data-1.4.1-5/midgard-data.conf
contains configuration information for Apache.
You should add it to Apache configuration file before starting Midgard.

--------------------------------------------------------------------------------

! Installation finished. After restarting Apache you'll be able to access
! Midgard Admin site as root at
        http://debian:80/admin/ using:
 <username>='admin' and <password>='password'

--------------------------------------------------------------------------------
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
In file included from midgard.c:32:
mgd_internal.h:24: config.h: No such file or directory
In file included from mgd_internal.h:29,
                 from midgard.c:32:
mgd_access.h:24: midgard/midgard.h: No such file or directory
In file included from midgard.c:33:
mgd_oop.h:25: midgard/tablenames.h: No such file or directory
In file included from mgd_preparser.h:23,
                 from midgard.c:56:
mgd_internal.h:24: config.h: No such file or directory
In file included from midgard.c:56:
mgd_preparser.h:24: midgard/midgard.h: No such file or directory
make[1]: *** [midgard.slo] Error 1
make[1]: Leaving directory `/home/atanos/Midgard/midgard-php4-1.4.1-7'
make: *** [install-recursive] Error 1
My Steps for installing Midgard 1.4.1 on Debian Sid.
----------------------------------------------------

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:

   groupadd mysql
   useradd -g mysql mysql
   cd /home/atanos/Midgard/mysql-3.23.37
   ./configure --prefix=/usr/local/mysql --with-mysqld-user=mysql
   make
   make install
   ./scripts/mysql_install_db
   chown -R mysql.mysql /usr/local/mysql
   /usr/local/mysql/bin/safe_mysqld --user=mysql &
   /usr/local/mysql/bin/mysqladmin -u root password jr83-378%rl
   /usr/local/mysql/bin/mysqladmin -u root -h debian password jr83-378%rl
   
   I added /usr/local/mysql/lib/mysql to my /etc/ld.so.conf and ran ldconfig


   
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

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

   I also added /usr/local/lib to my /etc/ld.so.conf and ran ldconfig



4. I pre-configured Apache so that I could install PHP:

   cd /home/atanos/Midgard/apache_1.3.19
   ./configure --prefix=/usr/local/apache
   

   
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 
   


6. Next in line was the actual Apache installation:

   groupadd apache
   useradd -g apache.apache
   cd /home/atanos/Midgard/apache_1.3.19
   ./configure --prefix=/usr/local/apache --enable-module=all 
--with-perl=/usr/bin/perl \
   --enable-shared=max --server-uid=apache --server-gid=apache \
   --activate-module=src/modules/php4/libphp4.a --enable-module=php4
   make
   make install
   /usr/local/apache/bin/apachectl start

   I tested that everything (Apache, PHP & MySQL) was working, which it was.


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
   make
   make install

   I also added /usr/local/midgard/lib to my /etc/ld.so.conf and ran ldconfig
   
   
   
9. Midgard-data:

   cd /home/atanos/Midgard/midgard-data-1.4.1-5
   ./configure --with-db-admin=root --with-db-admin-password=jr83-378%rl \
   --with-db-user=midgard --with-db-user-password=midgard --with-db=midgard 
--with-lang=en \
   --with-midgard=/usr/local/midgard --with-php=4
   PATH=$PATH:/usr/local/mysql/bin
   ./dbinstall
   
   # Here is where I got the first error.
   
   cp midgard-data.conf /usr/local/apache/conf

   
10.mod_apache:

   cd /home/atanos/Midgard/mod_midgard-1.4.1-5
   ./configure --with-midgard=/usr/local/midgard --with-mysql=/usr/local/mysql \
   --with-expat=/usr/local --with-apxs=/usr/local/apache/bin/apxs
   make
   make install
   

11.Midgard-php:

   cd /home/atanos/Midgard/midgard-php4-1.4.1-7
   ./mkall
   
   
   # Here is where I get the second error.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to