Jaguar broke my webserver

Posted:
in Genius Bar edited January 2014
After installing 10.2 I'm getting these errors when I try to run MySQL:



./mysql undefined reference to _BC expected to be defined in /usr/lib/libSystem.B.dylib

./mysql undefined reference to _PC expected to be defined in /usr/lib/libSystem.B.dylib

./mysql undefined reference to _UP expected to be defined in /usr/lib/libSystem.B.dylib

Trace/BPT trap



Also, all my PHP scripts are not working. Instead of parsing the PHP it just displays it as text. Ahhh



Anyone know a quick fix or do I have to reinstall PHP and MySQL?

Comments

  • Reply 1 of 5
    Drop into a terminal window and type the following:



    nm /usr/lib/libSystem.B.dylib | grep _BC



    Does the output look anything like this:



    U _BC

    80001ce0 D _BC

    U _BC

    U _BC



    You may need to recompile the binaires.

  • Reply 2 of 5
    willoughbywilloughby Posts: 1,457member
    [quote]Originally posted by ThinkingDifferent:

    <strong>Drop into a terminal window and type the following:



    Does the output look anything like this:



    U _BC

    80001ce0 D _BC

    U _BC

    U _BC



    You may need to recompile the binaires.

    </strong><hr></blockquote>



    Hmmm, it says the "nm" command is not found. Sheesh I hope my system isn't missing something.
  • Reply 3 of 5
    That's not good. On my 10.1.5 box, nm is located in /usr/bin. Maybe your 10.2 install is hosed.
  • Reply 4 of 5
    airslufairsluf Posts: 1,861member
  • Reply 5 of 5
    torifiletorifile Posts: 4,024member
    PHP is off by default and you need to alter the httpd.conf to get it working. Here's what you need to do:



    Uncomment lines 239 and 281 and add these two lines in the AddType section. (around 850)



    AddType application/x-httpd-php .php .php4 .php3

    AddType application/x-httpd-php-source .phps



    As for mySQL, I'm sure it will be broken for a little while until someone fixes it. Just wait a couple days, I'm sure a fix will come along. (And did you really expect things to not be broken with this update?)
Sign In or Register to comment.