Opengroupware installation from Source with pitfalls
Installation script (for debian):
# used gcc version
# gcc -v
#gcc version 3.3.5 (Debian 1:3.3.5-12)
svn=`which svn`;
test -f "$svn"
result=$?
if [ "$result" != "0" ]; then
echo "please install subversion..."
exit;
fi
svn co http://svn.opengroupware.org/ThirdParty/trunk/ ThirdParty
svn co http://svn.opengroupware.org/SOPE/trunk/ SOPE-4.3
svn co http://svn.opengroupware.org/OpenGroupware.org/trunk/ OGo-1.0a
apt-get install gobjc-3.4
apt-get install libobjc1 # should be in the previous package
apt-get install gnustep-make
cd ThirdParty
mkdir gnustep-make
cd gnustep-make
wget http://ftp.gnustep.org/pub/gnustep/core/gnustep-make-1.10.0.tar.gz
tar xvzf gnustep-make-1.10.0.tar.gz
cd gnustep-make-1.10.0
./configure --prefix=$HOME/GNUstep --without-system-root --with-network-root=$HOME/GNUstep --with-local-root=$HOME/GNUstep --with-use
r-root=$HOME/GNUstep --with-library-combo=gnu-fd-nil
make -s install
cd ..
cd ..
source $HOME/GNUstep/Library/Makefiles/GNUstep.sh
cd gnustep-objc
make -s debug=yes FHS_INSTALL_ROOT=/usr/local install
ldconfig
cd ..
cd libFoundation
./configure
make -s debug=yes FHS_INSTALL_ROOT=/usr/local install
#GNUmakefile:29: /common.make: No such file or directory
#GNUmakefile:34: /aggregate.make: No such file or directory
#make: *** No rule to make target `/aggregate.make'. Stop.
# you get this if gnustep make isn't installed properly go back and install gnustep make
#NSObject.m:632:1: pasting "(" and "mth" does not give a valid preprocessing token
#make[2]: *** [shared_debug_obj/./GNU/NSObject.o] Error 1
#make[1]: *** [libFoundation.all.library.variables] Error 2
#make: *** [internal-all] Error 2
#gcc 3.3.5
#NSDate.m:255:2: #error no time function
#NSDate.m: In function `+[NSDate timeIntervalSinceReferenceDate]':
#NSDate.m:201: warning: control reaches end of non-void function
#make[2]: *** [shared_debug_obj/./GNU/NSDate.o] Error 1
#make[1]: *** [libFoundation.all.library.variables] Error 2
#make: *** [internal-all] Error 2
#gcc 3.4.3
#NSDate.m:279: warning: multiple methods named `-initWithTimeInterval:sinceDate:' found
#../Foundation/NSDate.h:75: warning: using `-(id)initWithTimeInterval:(NSTimeInterval)secsToBeAdded sinceDate:(NSDate *)anotherDate'
#NSDate.m:133: warning: also found `-(NSDate *)initWithTimeInterval:(NSTimeInterval)secsToBeAdded sinceDate:(NSDate *)anotherDate'
#make[2]: *** [shared_debug_obj/./GNU/NSDate.o] Error 1
#make[1]: *** [libFoundation.all.library.variables] Error 2
#make: *** [internal-all] Error 2
cd ../..
cd SOPE-4.3
apt-get install libldap2-dev
./configure --enable-debug
make -s install
ldconfig
cd ../cd OGo-1.0a
./configure --enable-debug
make -s install
echo "installed if everything went fine"revenger:/devel/ogoauto/ThirdParty/gnustep-objc# Defaults write a b 10 WARNING(+[NSBundle _resourcesSearchPathes]): nested call to function! (probably some libFoundation setup issue) WARNING(+[NSBundle _resourcesSearchPathes]): nested call to function! (probably some libFoundation setup issue) Segmentation fault
22:31 < helge> http://rafb.net/paste/results/bZ4hWX46.html 22:31 < helge> if you link against the wrong libobjc 22:31 < helge> should be libobjc_d.so.lf2 do a ldd Defaults and you'll see if it's linked against libobjc_d.so.lf2
revenger:/devel/ogoauto/ThirdParty/gnustep-objc# Defaults
Defaults: error while loading shared libraries: libobjc_d.so.lf2: cannot open shared object file: No such file or directory
revenger:/devel/ogoauto/ThirdParty/gnustep-objc# ldconfig
revenger:/devel/ogoauto/ThirdParty/gnustep-objc# Defaults
Tool to manipulate the defaults database of a generic implementation of
OpenStep Foundation.
Show the defaults for all the domains:
Defaults read
Show the defaults for a given domain:
Defaults read "domain's name"
Show the defaults for a given key of a given domain:
Defaults read "domain's name" "key"
Update the defaults for a given domain:
Defaults write "domain's name" "domain's plist representation"
Update the defaults for a given key in a given domain:
Defaults write "domain's name" "key" "value"
Delete the defaults for a given domain:
Defaults delete "domain's name"
Delete the defaults for a given key in a given domain:
Defaults delete "domain's name" "key"
Show all the existing domains:
Defaults domains
Copyright 1995-1997, Ovidiu Predescu and Mircea Oancea. See the libFoundation's
license for more information.
revenger@debian:/devel/ogoauto/ThirdParty/gnustep-objc# cat /etc/ld.so.conf
/usr/X11R6/lib
/usr/local/lib
/usr/lib
/usr/lib/GNUstep/System/Library/LibrariesError:
May 24 22:37:40 ogo-webui-1.0a [29845]: [ogo-rm] Note: did not find components.cfg(ogo-webui-1.0a) for theme: default-theme May 24 22:37:40 ogo-webui-1.0a [29845]: [ogo-rm] Note: did not find components.cfg: ogo-webui-1.0a/English May 24 22:37:40 ogo-webui-1.0a [29845]: (74957495014293ACB4) ERROR: did not find components.cfg for languages: English 192.168.70.62 - - [24/May/2005:22:37:40 GMT] "GET /OpenGroupware/ HTTP/1.0" 200 0 0.173 - - 2M
Solution
http://mail.opengroupware.org/pipermail/macosx/2004-November.txt http://svn.opengroupware.org/OpenGroupware.org/trunk/INSTALL adjust FHS_INSTALL_ROOT and OGO_SRC_TREE also verify that the GNUstep.sh path is right ---- FHS_INSTALL_ROOT=/usr/local OGO_SRC_TREE=/devel/ogoauto/OGo-1.0a source $HOME/GNUstep/Library/Makefiles/GNUstep.sh cd $GNUSTEP_USER_ROOT ln -s $OGO_SRC_TREE/WebUI/Resources . mkdir -p Library/OpenGroupware.org-1.0a/ ln -s $OGO_SRC_TREE/WebUI/Templates Library/OpenGroupware.org-1.0a/ ln -s $OGO_SRC_TREE/Themes/WebServerResources . ln -s $OGO_SRC_TREE/WebUI/Resources $FHS_INSTALL_ROOT/share/opengroupware.org-1.0a/translations ln -s $OGO_SRC_TREE/WebUI/Templates $FHS_INSTALL_ROOT/share/opengroupware.org-1.0a/templates ln -s $OGO_SRC_TREE/Themes/WebServerResources $FHS_INSTALL_ROOT/share/opengroupware.org-1.0a/www
Test Opengroupware
source /root//GNUstep/Library/Makefiles/GNUstep.sh ogo-webui-1.0a -WOPort 20000 -WOHttpAllowHost <hostname which is allowed to connect>
