User Tools

Site Tools


server_installation:opensrf_on_osx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
server_installation:opensrf_on_osx [2011/08/29 18:02] – created jamesrfserver_installation:opensrf_on_osx [2022/02/10 13:34] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ==== Rough notes for getting OpenSRF running on OS X ==== ==== Rough notes for getting OpenSRF running on OS X ====
  
-This was tested on master OpenSRF @ba3ca05+This was tested on master OpenSRF @ba3ca05, OS X Lion
  
-Install MacPorts and the following ports:+You need to install XCode and MacPorts. 
 + 
 +In MacPorts install something like the following ports:
  
   apache2 @2.2.19_0+preforkmpm+universal (active) platform='darwin 11' archs='i386 x86_64'   apache2 @2.2.19_0+preforkmpm+universal (active) platform='darwin 11' archs='i386 x86_64'
Line 24: Line 26:
  
  
-git clone git://git.evergreen-ils.org/OpenSRF.git +Do something like this: 
-cd OpenSRF + 
-./autogen.sh +  git clone git://git.evergreen-ils.org/OpenSRF.git 
-./configure --with-apxs=/opt/local/apache2/bin/apxs  --with-libraries=/opt/local/lib:/usr/lib --with-includes=/opt/local/include/ --with-apache=/opt/local/include --with-apr=/opt/local/include/apr-1/ --with-libxml=/opt/local/include/libxml2 +  cd OpenSRF 
-make +   
-sudo make install+You need to do this to src/c-apps/timejson.c 
 + 
 +  diff --git a/src/c-apps/timejson.c b/src/c-apps/timejson.c 
 +  index c0ab46e..2cafa4b 100644 
 +  --- a/src/c-apps/timejson.c 
 +  +++ b/src/c-apps/timejson.c 
 +  @@ -5,7 +5,6 @@ 
 +   #include <time.h> 
 +   #include <sys/time.h> 
 +   #include <sys/resource.h> 
 +  -#include <malloc.h> 
 +   #include "opensrf/utils.h" 
 +   #include "opensrf/osrf_json.h" 
 + 
 +Then do this or something: 
 + 
 +  ./autogen.sh 
 +  ./configure --with-apxs=/opt/local/apache2/bin/apxs  --with-libraries=/opt/local/lib:/usr/lib --with-includes=/opt/local/include/ --with-apache=/opt/local/include --with-apr=/opt/local/include/apr-1/ --with-libxml=/opt/local/include/libxml2 
 +  make 
 +  sudo make install 
 + 
 +You need to do this at some point and it needs to be done each time you reboot before you start Ejabberd, if you want to run OpenSRF:
  
-#===== +  sudo ifconfig lo0 alias 127.0.1.2 
-sudo ifconfig lo0 alias 127.0.1.2 +  sudo ifconfig lo0 alias 127.0.1.3
-sudo ifconfig lo0 alias 127.0.1.3+
  
-#add the usual stuff to /etc/hosts and ejabberdcfg+Be sure to add the usual stuff to /etc/hosts and ejabberdcfg
  
-# add an OpenSRF user+Add an OpenSRF user via the normal "System Preferences" way
  
 # run this before starting OpenSRF # run this before starting OpenSRF
  
-export DYLD_LIBRARY_PATH=/opensrf+  export DYLD_LIBRARY_PATH=/opensrf
  
  
server_installation/opensrf_on_osx.1314655329.txt.gz · Last modified: 2022/02/10 13:34 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.