Personal tools
You are here: Home Users Nguyen Non-Plone How Tos How to build KARL

How to build KARL

by T. Kim Nguyen last modified Nov 05, 2009 09:02 PM

from karlproject.org. On Mac OS X Snow Leopard.

Summary

On OS X Snow Leopard I eventually gave up.  (See below for the painful memories).

When I gave up and went over to SuSE EL, I was able to follow the build instructions without any problems whatsoever.

My conclusion is that Snow Leopard has broken a number of things in various build tools and it may be some time (never?) before people go back and fix those, especially in older tool versions such as Python 2.5.

Try with Python from source

  • Download Python 2.5 source from python.org
  • On Snow Leopard, you have to 
  • export CC=gcc-4.0 
  • before you run configure otherwise you will get the error 
  • cc1: error: unrecognized command line option "-Wno-long-double"
  • when you run make.
     
    Naaa, still get this error:
    Include/pyport.h:548: warning: ‘struct winsize’ declared inside parameter list
    ./Modules/posixmodule.c: In function ‘wait_helper’:
    ./Modules/posixmodule.c:5550: error: ‘struct rusage’ has no member named ‘ru_maxrss’
    ./Modules/posixmodule.c:5551: error: ‘struct rusage’ has no member named ‘ru_ixrss’
    ./Modules/posixmodule.c:5552: error: ‘struct rusage’ has no member named ‘ru_idrss’
    ./Modules/posixmodule.c:5553: error: ‘struct rusage’ has no member named ‘ru_isrss’
    ./Modules/posixmodule.c:5554: error: ‘struct rusage’ has no member named ‘ru_minflt’
    ./Modules/posixmodule.c:5555: error: ‘struct rusage’ has no member named ‘ru_majflt’
    ./Modules/posixmodule.c:5556: error: ‘struct rusage’ has no member named ‘ru_nswap’
    ./Modules/posixmodule.c:5557: error: ‘struct rusage’ has no member named ‘ru_inblock’
    ./Modules/posixmodule.c:5558: error: ‘struct rusage’ has no member named ‘ru_oublock’
    ./Modules/posixmodule.c:5559: error: ‘struct rusage’ has no member named ‘ru_msgsnd’
    ./Modules/posixmodule.c:5560: error: ‘struct rusage’ has no member named ‘ru_msgrcv’
    ./Modules/posixmodule.c:5561: error: ‘struct rusage’ has no member named ‘ru_nsignals’
    ./Modules/posixmodule.c:5562: error: ‘struct rusage’ has no member named ‘ru_nvcsw’
    ./Modules/posixmodule.c:5563: error: ‘struct rusage’ has no member named ‘ru_nivcsw’
    ./Modules/posixmodule.c: In function ‘posix_wait3’:
    ./Modules/posixmodule.c:5592: warning: implicit declaration of function ‘wait3’
    ./Modules/posixmodule.c: In function ‘posix_wait4’:
    ./Modules/posixmodule.c:5616: warning: implicit declaration of function ‘wait4’
    ./Modules/posixmodule.c: In function ‘posix_getloadavg’:
    ./Modules/posixmodule.c:7963: warning: implicit declaration of function ‘getloadavg’
    make: *** [Modules/posixmodule.o] Error 1
 

Start again with release of Python

 
Installed Python via .dmg into /Library
 
Got setuptools, ran sh setuptools-bla.egg
 
That installed easy_install
 
easy_install virtualenv
 
Continued with Karl instructions
 
Bummer, got this error:
Installing lxml.
Building lxml version 2.2.
NOTE: Trying to build without Cython, pre-generated 'src/lxml/lxml.etree.c' needs to be available.
Using build configuration of libxml2 2.6.32 and libxslt 1.1.24
Building against libxml2/libxslt in one of the following directories:
  /Users/kim/src/karl3/parts/libxml2/lib
  /Users/kim/src/karl3/parts/libxslt/lib
Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.4u.sdk
Please check your Xcode installation
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't figure out the architecture type of: /var/folders/SK/SK09rGcSHx8rRCQoIFAzq++++TI/-Tmp-//cc1DCYyj.out
error: Setup script exited with error: command 'gcc' failed with exit status 1
An error occured when trying to install lxml 2.2.Look above this message for any errors thatwere output by easy_install.
While:
  Installing lxml.
Error: Couldn't install: lxml 2.2
 
 
     
     
Document Actions
  • Print this
  • Bookmarks
Help

For Plone technical support during normal work hours:

To request a new web site: