473,387 Members | 3,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

mod-python on Mac OSX 10.5

I am trying to install mod_python on OSX 10.5, Intel version.

sudo apachectl configtest tells me this:

httpd: Syntax error on line 114 of /private/etc/apache2/httpd.conf:
Cannot load /usr/libexec/apache2/mod_python.so into server:
dlopen(/usr/libexec/apache2/mod_python.so, 10): no suitable image
found. Did find:\n\t/usr/libexec/apache2/mod_python.so: mach-o, but
wrong architecture

I attempted to follow instructions found on these pages but it didn't work:

<http://mike.crute.org/blog/2007/11/08/mod_python-on-leopard/>

<http://farbflash.de/cgi-bin/blosxom.cgi/Dokumente/MacOSX/Leopard/ApacheModules/python_module.html>

Can

anyone tell me what is causing this error?

-- Gnarlie
http://Gnarlodious.com/
--
Posted via a free Usenet account from http://www.teranews.com

Jan 8 '08 #1
1 1320
On Jan 8, 5:27*am, Gnarlodious <lists.gnarlodi...@gmail.comwrote:
I am trying to install mod_python on OSX 10.5, Intel version.

sudo apachectl configtest tells me this:

httpd: Syntax error on line 114 of /private/etc/apache2/httpd.conf:
Cannot load /usr/libexec/apache2/mod_python.so into server:
dlopen(/usr/libexec/apache2/mod_python.so, 10): no suitable image
found. Did find:\n\t/usr/libexec/apache2/mod_python.so: mach-o, but
wrong architecture

I attempted to follow instructions found on these pages but it didn't work:

<http://mike.crute.org/blog/2007/11/08/mod_python-on-leopard/>

<http://farbflash.de/cgi-bin/blosxom.cgi/Dokumente/MacOSX/Leopard/Apac...>

Can

anyone tell me what is causing this error?
(Sorry no time to read the references you provide)

This is because httpd is running in 64 bits (arch x86_64) but
mod_python.so is only 32 bits by default. You need to modify this.
what I did was:

make the following changes to src/Makefile:
* Add -arch x86_64 to the LDFLAGS line
* Change the build line in mod_python.so to:
$(APXS) $(INCLUDES) -c -Wc,"-arch x86_64" $(SRCS) $(LDFLAGS) $
(LIBS)

Now that I look at this, I don' know if both are necessary... But it
worked for me.

There was a discussion to the mod_python mailing list in october 2007:

http://www.modpython.org/pipermail/m.../2007-October/

--
Arnaud

Jan 8 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Todd | last post by:
I can't find a Mod or remainder function in .net. Does anyone know if these fuctions exist? -- Thanks in advance, Todd
7
by: Jo | last post by:
Hi Guys! I'm sorry for my stupid question. I want to use the operator "mod" (perhaps mod is pascal and not c++) to calculate the rest of a division, to separate the odd and even number of...
4
by: Mark | last post by:
Why does MsgBox 4.25 MOD 1 display 0? I was hoping to get .25. Thanks! Mark
4
by: Mike Reid | last post by:
Appreciate any feedback on the MOD function. I am at a loss to understand its "mathmatics". From the help Result = Number1 MOD Number2 where the result should be the remainder of the...
4
by: Diogo Alves - Software Developer | last post by:
I have the following code line: dsEmps.Tables.Columns.Expression = "MonthlyDeviation%60"; but hits gives an error it says that can't MOD from System.Double to System.Int32 I tried to put the...
10
by: Edward Mogel | last post by:
What would be the correct code when entering a number between 102 and 676 and having it find the average of all the even numbers between 1 and the supplied number using the looping construct. Also...
3
by: Michael C# | last post by:
A statement of the form (m mod n) uses the sign of the first operand (m) as the sign of the result. I've ecnountered an issue where I need it to use the sign of the second operand. Here's what it...
3
mod
by: Laura K | last post by:
I have a piece of code that I found to allow me to page through the records in a datalist. For the most part I understand it but I am a bit confused by the following. tmpInt =...
2
by: Rob | last post by:
I'm looking for a mod 10 script that you know to work well. I have googled and found a few different ones but I would like a 2nd opinion. If you can please link me to a mod 10 script that you have...
1
Mod
by: RN1 | last post by:
79 Mod 92 evaluates to 79 156 Mod 249 evaluates to 156 So while using the Mod operator, if the first number is less than the second number, will the result be ALWAYS EQUAL to the first number?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.