Kero21
29-03-10, 08:39 PM
Here is a Guide on how to make a server on the Mac.
Note: this was not made by me. credits are at the bottom
The pre-compiled one will not work. You have to compile it for Mac OS. As for the network bridging, it won't work if you're trying to connect to 127.0.0.1. 127.0.0.1 is localhost, which by definition isn't another computer. If you have bridging, the "PC" will be a completely separate IP from the Mac. For example when I did it, my Mac's IP was 192.168.254.100, and VMWare had 192.168.254.185.
Here are the instructions I posted on "that other forum" back when I thought it was the official forum:
1. Install MySQL (http://dev.mysql.com/downloads/)
2. Install Fink (http://www.finkproject.org/download/index.php?phpLang=en)
3. Using Fink, install and compile mysql15-dev
4. Open /usr/include/c++/4.0.0/cstdlib and comment out the "#undef malloc" and "#undef realloc" lines. You may want to uncomment these lines after you've finished, as it may cause problems for compiling other things
5. Edit the "configure" file in the antrix folder, and replace "ac_cv_func_malloc_0_nonnull=no" with "ac_cv_func_malloc_0_nonnull=yes". There are two occurrences of this I believe. Basically it's trying to find GNU Malloc and Realloc, which OS X doesn't use, but it doesn't matter.
6. Do the same for "ac_cv_func_realloc_0_nonnull=no" - replace with "ac_cv_func_realloc_0_nonnull=yes"
7. In a terminal window, type "sudo -s" and enter your password
8. type "ln -s /usr/local/mysql/lib /usr/local/lib/mysql" (without quotes)
9. type "grep -R -export-dynamic *" (make sure you are in the antrix directory). Any file that shows up needs to be edited to remove all occurrences of that. ld in Mac OS X doesn't use that flag, and make will fail if it's in there.
10. type "./configure --prefix=/usr/antrix --with-python --enable-cli --enable-ra --target i386" (without quotes of course)
11. If that goes through, type "make"
12. If that goes through, type "make install"
13. cd to /usr/antrix, and mkdir etc, then copy the .conf files there (cp ~/<path to antrix>/src/*.conf etc)
14. cd to bin, then mkdir maps and dbc. Copy the necessary files to them
15. Use your favorite MySQL tool to import the apdb.sql file (I like CocoaMySQL).
16. Set up your .conf files (there are instructions on this forum for that, or just read the instructions in the files).
17. In /usr/antrix/bin type ./logonserver
18. Create a new terminal window, and navigate back to /usr/antrix/bin, and type ./antrix
i am just posting this to clear some confusion that may arise. :)
credits go to sarahbau (http://emupedia.com/community/member.php?u=59992) on emupedia.com
Note: this was not made by me. credits are at the bottom
The pre-compiled one will not work. You have to compile it for Mac OS. As for the network bridging, it won't work if you're trying to connect to 127.0.0.1. 127.0.0.1 is localhost, which by definition isn't another computer. If you have bridging, the "PC" will be a completely separate IP from the Mac. For example when I did it, my Mac's IP was 192.168.254.100, and VMWare had 192.168.254.185.
Here are the instructions I posted on "that other forum" back when I thought it was the official forum:
1. Install MySQL (http://dev.mysql.com/downloads/)
2. Install Fink (http://www.finkproject.org/download/index.php?phpLang=en)
3. Using Fink, install and compile mysql15-dev
4. Open /usr/include/c++/4.0.0/cstdlib and comment out the "#undef malloc" and "#undef realloc" lines. You may want to uncomment these lines after you've finished, as it may cause problems for compiling other things
5. Edit the "configure" file in the antrix folder, and replace "ac_cv_func_malloc_0_nonnull=no" with "ac_cv_func_malloc_0_nonnull=yes". There are two occurrences of this I believe. Basically it's trying to find GNU Malloc and Realloc, which OS X doesn't use, but it doesn't matter.
6. Do the same for "ac_cv_func_realloc_0_nonnull=no" - replace with "ac_cv_func_realloc_0_nonnull=yes"
7. In a terminal window, type "sudo -s" and enter your password
8. type "ln -s /usr/local/mysql/lib /usr/local/lib/mysql" (without quotes)
9. type "grep -R -export-dynamic *" (make sure you are in the antrix directory). Any file that shows up needs to be edited to remove all occurrences of that. ld in Mac OS X doesn't use that flag, and make will fail if it's in there.
10. type "./configure --prefix=/usr/antrix --with-python --enable-cli --enable-ra --target i386" (without quotes of course)
11. If that goes through, type "make"
12. If that goes through, type "make install"
13. cd to /usr/antrix, and mkdir etc, then copy the .conf files there (cp ~/<path to antrix>/src/*.conf etc)
14. cd to bin, then mkdir maps and dbc. Copy the necessary files to them
15. Use your favorite MySQL tool to import the apdb.sql file (I like CocoaMySQL).
16. Set up your .conf files (there are instructions on this forum for that, or just read the instructions in the files).
17. In /usr/antrix/bin type ./logonserver
18. Create a new terminal window, and navigate back to /usr/antrix/bin, and type ./antrix
i am just posting this to clear some confusion that may arise. :)
credits go to sarahbau (http://emupedia.com/community/member.php?u=59992) on emupedia.com