Share

Mathematica MathLink interface to MySQL

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Help compiling for MMA 5 on Mac OS X

You are viewing a single message from this topic. View all messages.

  1. 2004-09-19 13:45:47 UTC
    The original makefile has the following variables in it:

    SYS = Linux
    ¿Should I change this to MacOSX? This is what $OperatingSystem returns in MMA.

    INCDIR = /usr/include/mysql
    I changed this to /usr/local/mysql/include

    LIBDIR = /usr/lib/mysql
    I changed this to /usr/local/mysql/lib

    BINDIR = /home/stefan/.Mathematica/4.1/AddOns/Applications

    I changed this to /Applications/Mathematica\ 5.0.app/AddOns/Applications

    VERSION = 0.2
    DDIR = mysql-mlink-${VERSION}
    MPREP = mprep

    When I try to compile by typing "make", I get the following error:

    mysqltm.c:15:22: mathlink.h: No such file or directory

    By using 'locate mathlink.h' I know that this file is in /Applications/Mathematica 5.0.app/AddOns/MathLink/DeveloperKit/Darwin/CompilerAdditions/mathlink.h

    My question is, where in the makefile do I put that directory?

    This may be a very basic cuestion, but this is the first time I edit a makefile.

    Regards,

    Gustavo Delfino
    Caracas, Venezuela
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.