install:mac_compiling_fink

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
howto:mac_compiling_fink [2015/04/03 10:54] paffenholzinstall:mac_compiling_fink [2019/05/16 11:38] paffenholz
Line 3: Line 3:
 **Note** that version 3.8.2 of ''make'' that can be installed via fink does not work. Use the ''make'' that comes with Mac OS.  **Note** that version 3.8.2 of ''make'' that can be installed via fink does not work. Use the ''make'' that comes with Mac OS. 
  
-You can configure ''polymake'' with one of the following commands (for **10.9** and **10.10**, and if you use the compiler from apples command line tools, read the note below before issuing this command!). You can also add further custom switches, see below. +You can configure ''polymake'' with one of the following commands. You can also add further custom switches, see below. Open a ''Terminal'' window and switch to the folder you want to compile polymake in. All the following commands have to be issued in the same window
  
-  * If you use the **standard compiler** of **XCode**<code>./configure</code>  +  * Preparation:  
-  * If you installed a compiler via **''fink''** or compiled your **own**:<code>./configure CC=<path-to-your>/gcc CXX=<path-to-your>/g++</code>Note that, if you obtained your gcc from fink it will have a different name (some variation of ''gcc-4'' or ''gcc-fsf-4.7'', and similarly for g++, check your ''/sw/bin'' directory, this way fink#s gcc does not shadow apple's.+      The variable ''JAVA_HOME'' is not set correctly. Please do<code>export JAVA_HOME=/Library/Java/JavaVirtualMachines/<java-version-with-minor>/Contents/Home</code>where you have to put in the approiate java version directory (which you can find out by checking which folders are in ''/Library/Java/JavaVirtualMachines/'').
  
-**Note for 10.9** and **10.10**:  +  Configuration: This depends on the compiler you want to use 
-  For some reason the compiler does not find header libraries installed in the default directories below ''/usr'', so we have to add them manually by adding<code>LDFLAGS='-stdlib=libstdc++' CXXFLAGS='-I/usr/include/c++/4.2.1'</code> to the above configuration commands +      If you use the **standard compiler** of **XCode**: <code>./configure</code>  
-  * Further, ''ant'' is not found by configure. If you have java in version **1.7** or lower then we can solve this by issuing<code>export ANT_HOME=/sw/bin/ant</code> prior to calling the above configuration command (Replace ''/sw'' by your ''fink'' installation directory if you did not use the default), For **1.8** you have installed your own version of ''ant'' into some directory <dir>. In this case do<code>export ANT_HOME=<full-path-of-dir>/apache-ant-1.9.4/bin/ant</code> +      If you installed a compiler via **''fink''** or compiled your **own**:<code>./configure CC=<path-to-your>/gcc CXX=<path-to-your>/g++</code>Note thatif you obtained your gcc from fink it will have a different name (some variation of ''gcc-4'' or ''gcc-fsf-4.7'', and similarly for g++, check your ''/sw/bin'' directory, this way fink's gcc does not shadow apple's. 
-  * On **10.10** with **java 1.8** the variable ''JAVA_HOME'' is not set correctyPlease do<code>export JAVA_HOME=/Library/Java/JavaVirtualMachines/<java-version-with-minor>/Contents/Home</code>where you have to put in the approiate java version directory (which you can find out by checking which folders are in ''/Library/Java/JavaVirtualMachines/'').+      *  If during configuration ''perl'' complains about wrong architecture of your ''fink'' files you can try to help ''perl'' by issuing<code>export VERSIONER_PERL_PREFER_32_BIT=no</code>(or ''yes'', if your ''fink'' is a 32bit version)If this helps, you should set this in your ''.profile'' file or in the system preferences.
  
-If during configuration ''perl'' complains about wrong architecture of your ''fink'' files you can try to help ''perl'' by issuing +  * Compilation: Once configuration was successful, continue with<code>make 
-<code> +make install</code>
-export VERSIONER_PERL_PREFER_32_BIT=no +
-</code> +
-(or ''yes'', if your ''fink'' is a 32bit version). If this helps, you should set this in your ''.profile'' file or in the system preferences.+
  
-Once configuration was successful, continue with  + 
-<code> +=== Additional Options ===
-make +
-make install +
-</code>+
  
 Except for potentially explicitly specifiying the jni header path and the path to the STL headers the installation process is the same as for a Linux system.  We list some important options for configuration below, but for a complete list of options please check the configuration section on the [[http://wwwopt.mathematik.tu-darmstadt.de/polymake/doku.php/howto/install#configuration|Linux installation page]]. Except for potentially explicitly specifiying the jni header path and the path to the STL headers the installation process is the same as for a Linux system.  We list some important options for configuration below, but for a complete list of options please check the configuration section on the [[http://wwwopt.mathematik.tu-darmstadt.de/polymake/doku.php/howto/install#configuration|Linux installation page]].