Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Apache / PHP4 / MySQL Success!

Apache / PHP4 / MySQL Success!
Thread Tools
Mac Elite
Join Date: Sep 2000
Location: Eagan, MN
Status: Offline
Reply With Quote
Sep 25, 2000, 12:37 PM
 
How many people have gotten Apache, PHP4, and/or MySQL to run on OS X Public Beta?

I've been poking at it for a couple days, and finally got Apache with PHP4 to install. x 100

I'm currently workin on MySQL.

------------------
-Eric Schneider (SonicBlue)
     
Senior User
Join Date: Sep 2000
Location: Denver, CO, USA
Status: Offline
Reply With Quote
Sep 25, 2000, 04:39 PM
 
i do not use mysql, but have apache and php installed and running - installed them on darwin then dumped osX on top of it all and it still works!
// hōtani
MDD G4 dual 867
     
Dedicated MacNNer
Join Date: Sep 2000
Location: Brisbane, Queensland, Australia
Status: Offline
Reply With Quote
Sep 25, 2000, 08:37 PM
 
I *REALLY* don't think you are going to have much luck finding out how to compile or run MySQL on OS X Beta for the moment, at least until someone finds a way or fixes that pthreads problem up which has plagued it on OS X DP & Beta.

If anyone has, please drop us a line. Let us know, everyone wants MySQL
     
Dedicated MacNNer
Join Date: Sep 2000
Location: Brisbane, Queensland, Australia
Status: Offline
Reply With Quote
Sep 25, 2000, 08:40 PM
 
I *REALLY* don't think you are going to have much luck finding out how to compile or run MySQL on OS X Beta for the moment, at least until someone finds a way or fixes that pthreads problem up which has plagued it on OS X DP & Beta.

If anyone has, please drop us a line. Let us know, everyone wants MySQL
     
Mac Elite
Join Date: Sep 2000
Location: Eagan, MN
Status: Offline
Reply With Quote
Sep 25, 2000, 09:48 PM
 
You're probably right.

I got everything to compile and install EXCEPT the server (mysqld)

And binaries for Mac OS X Server produce 'Bus Error' when run.
     
Mac Elite
Join Date: Sep 2000
Location: Eagan, MN
Status: Offline
Reply With Quote
Sep 26, 2000, 01:46 AM
 
I installed a replacement pthread library. Now I just have to figure out how to configure the mysql make to use it. The guess method isn't working very well since it takes 15 minutes per trial.

Anyone have any ideas?

------------------
-Eric Schneider (SonicBlue)
     
Fresh-Faced Recruit
Join Date: Sep 2000
Status: Offline
Reply With Quote
Sep 26, 2000, 06:59 AM
 
I believe our friend, Anjo Krank... the one who gave us the OSX Server patches for mySQL, is working on the OS X Beta port now.

Watch for it within the next couple of weeks.


--
Aaron Bratcher
Got Data? See it with db Reports
http://abDataTools.com
     
John Heitmann
Guest
Status:
Reply With Quote
Sep 26, 2000, 12:48 PM
 
I really don't understand the fervor over getting MySQL running. I haven't tried yet in PB, but in DP4 MySQL wasn't too bad to get going. Sure there are some pthread functions missing, but on the whole enough pthread functionality is there. If you look at the pthread source in MySQL, you will see that the MySQL developers have already dealt with other platforms that lack the same pthread functions that MacOS X lacks. They even conveniently provided #defines so that unavailable pthread functions can be circumvented in one spot.

The only problem I ran into was that mysqld was sometimes difficult to shutdown due to the lack of a certain pthread call (pthread_kill? I don't remember), but who would ever want to shutdown MySQL ;-)

In general to get MySQL compiling: if it doesn't work chop it out and try to recompile.
     
Dedicated MacNNer
Join Date: Sep 2000
Location: Brisbane, Queensland, Australia
Status: Offline
Reply With Quote
Sep 26, 2000, 06:38 PM
 
Okay, just found this link which will help all of us! (who don't want the experimental version)
http://www.omnigroup.com/mailman/arc...er/004204.html

It has detailed a way to compile MySQL on PB, with the problem mentioned about killing the pthread.
     
Fresh-Faced Recruit
Join Date: Sep 2000
Location: San Francisco, CA
Status: Offline
Reply With Quote
Sep 26, 2000, 08:12 PM
 
I have patched the distribution but it still crash and burns when compiling string portion. Anone just want to post binaries for MySQL?
     
Professional Poster
Join Date: Jan 2000
Status: Offline
Reply With Quote
Sep 26, 2000, 09:34 PM
 
I just got this in the Darwin dev list.

Date: Tue, 26 Sep 2000 15:02:41 -0700
From: Chris Meyer <cmeyer@gatan.com>
Subject: mysql on Darwin/OSX PB

I put together a patch file for patching MySQL to run under OS X
PB/Darwin. I didn't test it thoroughly but I did get the mysql daemon
up and running and was able to access a few databases with the
client... In particular, I think the thread support doesn't work
correctly (in the same way it didn't under OS X Server). Anyone more
knowledgeable know anything more about pthread_kill, pthread_signal,
and other linux-only calls?

The basic things the patch does are:

- - Update config.guess and config.sub files
- - Add a new section called 'HAVE_DARWIN_THREADS' for supporting the
Darwin threads
- - Fix one line in sql_cache.cc that the Darwin compiler chokes on

Anyway, to use the patch (run this portion as a regular user):

wget ]http://www.mysql.com/Downloads/MySQL-3.23/mysql-3.23.24-beta.tar.gz......



It goes one with a diff too long to post. Hit the list. to get it.


[This message has been edited by Scott_H (edited 09-26-2000).]
     
Mac Elite
Join Date: Sep 2000
Location: Eagan, MN
Status: Offline
Reply With Quote
Sep 27, 2000, 10:42 AM
 
I got mysql to compile and install (with the server mysqld) but when I run it I get the same 'bus error' as with the OS X Server binary.

------------------
-Eric Schneider (SonicBlue)
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:09 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2