Install Gmp Library Mac

#46814closeddefect (worksforme)

64-bit application. If Python and gmp are not compiled in 64-bit modeyou probably will want to compile both of them from source or find 64- bit versions. Macs usually work with Universal binaries. The System's Python 2.6 is a 3-way binary: ppc, i386, and x8664. It runs in 64-bit mode when you're on a Mac with a 64-bit processor and 32. An easy way to compile and install GIMP and other great Free software on your Mac is by using Macports. The installer allows you to choose from a large directory of packages. To install gimp using Macports, you simply do sudo port install gimp once you have Macports installed.

Reported by:Owned by:MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: gmp

Description (last modified by larryv (Lawrence Velázquez))

Attachments (6)

main.log​ (6.4 KB) - added by subhashsamuel@…6 years ago.
gmp-config-failure
main.2.log​ (6.4 KB) - added by subhashsamuel@…6 years ago.
port-gmp-log
config.log​ (41.0 KB) - added by subhashsamuel@…6 years ago.
Config Log
main.rtf​ (6.8 KB) - added by subhashsamuel@…6 years ago.
main.log
main.3.log​ (9.1 KB) - added by subhashsamuel@…6 years ago.
Main.log
config.2.log​ (41.0 KB) - added by subhashsamuel@…6 years ago.
Config.log

Download all attachments as: .zip

Change History (19)

Changed 6 years ago by subhashsamuel@…

Changed 6 years ago by subhashsamuel@…

comment:1 in reply to: description ; follow-up: 4 Changed 6 years ago by larryv (Lawrence Velázquez)

Cc:subhashsamuel@… removed
Description: modified (diff)
Keywords:Failedtoconfiguregmp removed
Port:gmp added; wget removed
Priority:HighNormal
Summary:wget gmp configure error - installation failuregmp configure error

comment:2follow-up: 3 Changed 6 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to mcalhoun@…

Changed 6 years ago by subhashsamuel@…

comment:3 in reply to: 2 ; follow-up: 5 Changed 6 years ago by subhashsamuel@…

comment:4 in reply to: 1 ; follow-up: 6 Changed 6 years ago by subhashsamuel@…

comment:5 in reply to: 3 ; follow-up: 8 Changed 6 years ago by larryv (Lawrence Velázquez)

comment:6 in reply to: 4 Changed 6 years ago by larryv (Lawrence Velázquez)

comment:7 Changed 6 years ago by ryandesign (Ryan Schmidt)

Changed 6 years ago by subhashsamuel@…

comment:8 in reply to: 5 ; follow-up: 9 Changed 6 years ago by subhashsamuel@…

comment:9 in reply to: 8 ; follow-up: 10 Changed 6 years ago by larryv (Lawrence Velázquez)

Changed 6 years ago by subhashsamuel@…

Changed 6 years ago by subhashsamuel@…

comment:10 in reply to: 9 Changed 6 years ago by subhashsamuel@…

comment:11follow-up: 12 Changed 6 years ago by neverpanic (Clemens Lang)

comment:12 in reply to: 11 Changed 6 years ago by subhashsamuel@…

comment:13 Changed 6 years ago by neverpanic (Clemens Lang)

Note: See TracTickets for help on using tickets.

Charm has automated the installation process such that youdo not have to directly handle dependencies, linking, and compiler flag settings. Note that these automated installers are available at our repository.However, in the event you are interested in building and installing from source, we have provided installation steps for a number of widely used platforms. If we missed your favorite OS, feel free to write up the instructions and email us at support@charm-crypto.com.

Before we begin, please note the current dependencies:

  • Python2.7 or Python3
  • Pyparsing http://pyparsing.wikispaces.com/
  • GMP 5.x http://gmplib.org/
  • PBC (latest) http://crypto.stanford.edu/pbc/news.html
  • OPENSSL http://www.openssl.org/
  • (optional) MIRACL http://www.certivox.com/miracl/. See Building MIRACL for Charm if interested.
  • (optional) RELIC https://code.google.com/p/relic-toolkit/. See Building RELIC for Charm if interested.

See ./configure.sh--help for other options.

You can obtain a copy of the latest version of Charm from either of the following links:
https://github.com/JHUISI/charm/downloads

Please let us know at support@charm-crypto.com if you run into any setup or installation problems. We will be happy to offer our assistance.

Building On Linux¶

Install Gmp Library Mac Download

Note that the entire compilation process is supported by the Charm configure/make scripts.The steps for building in linux this way are:

  • In a terminal, run configure.sh
  • Confirm that you have installed the dependencies above. Then, proceed as follows:
    • make
    • makeinstall
    • maketest

Note

Another way to install dependencies is to use your package manager of choice.

Ubuntu 10.04 LTS¶

Before installing Charm, there are a few prerequisites that need to be installed on your system. These are:

  1. Subversion
    sudoapt-getinstallsubversion
  2. Python 3 (By default, Ubuntu 10.04 LTS comes with 2.6 and does not officially support 2.7. Charm requires 2.7 or 3.x) and header files/static library
    sudoapt-getinstallpython3python3-devpython3-setuptools
  3. m4
    sudoapt-getinstallm4
  4. libssl-dev
    sudoapt-getinstalllibssl-dev
Next, we will install Charm. Navigate to your Charm directory.
  1. We must first run the configuration script:

    sudo./configure.sh--python=/path/to/python3

  2. Now we will build and install Charm:

    sudomake

    sudomakeinstall

  3. And finally we must rebuild the search path for libraries

    sudoldconfig

  4. Run Pytests

    sudomaketest

Ubuntu 11.04¶

Before installing Charm, there are a few prerequisites that need to be installed on your system. These are:
  1. Subversion

    sudoapt-getinstallsubversion

  2. m4

    sudoapt-getinstallm4

  3. Python 3 (this is an optional, though recommended, step)

    sudoapt-getinstallpython3

  4. Header files/static library

    sudoapt-getinstallpython-dev (if you did not install Python 3)

    sudoapt-getinstallpython3-setuptoolspython3-dev (for Python 3.x)

  5. libssl-dev (only necessary if you did not install Python 3)

    sudoapt-getinstalllibssl-dev

Next, we will install Charm. Navigate to your Charm directory.
  1. We must first run the configuration script:

    sudo./configure.sh

    [If you installed Python 3 and would like to use that, you will need to add --python=/path/to/python3]

  2. Now we will build and install Charm:

    sudomake

    sudomakeinstall

  3. And finally we must rebuild the search path for libraries

    sudoldconfig

  4. Run Pytests

    sudomaketest

Ubuntu 13.04¶

Before installing Charm, there are a few prerequisites that need to be installed on your system. These are:
  1. Subversion

    sudoapt-getinstallsubversion

  2. m4

    sudoapt-getinstallm4

  3. Python 3 (this is an optional, though recommended, step)

    sudoapt-getinstallpython3

  4. Header files/static library

    sudoapt-getinstallpython-dev (if you did NOT install Python 3)

    sudoapt-getinstallpython3-setuptoolspython3-dev (for Python 3.x)

  5. libssl-dev (only necessary if you did not install Python 3)

    sudoapt-getinstalllibssl-dev

  6. GMP

    sudoapt-getinstalllibgmp-dev

Next, we will install Charm. Navigate to your Charm directory.
  1. We must first run the configuration script:

    sudo./configure.sh

  2. Install PBC from source

    ./configureLDFLAGS='-lgmp'

    make

    sudomakeinstall

    sudoldconfig

  3. Now we can build and install Charm:

    sudomake

    sudomakeinstall

  4. And finally we must rebuild the search path for libraries

    sudoldconfig

  5. Run Pytests

    sudomaketest

Fedora¶

Before installing Charm, there are a few prerequisites that need to be installed on your system. These are:
  1. m4

    su-c'yuminstallm4'

  2. Python 3 (this is an optional, though recommended, step)

    su-c'yuminstallpython3'

  3. Header files/static library

    su-c'yuminstallpython-devel' (if you did not install Python 3)

    su-c'yuminstallpython3-devel' (if you did install Python 3)

  4. openssl-devel (only necessary if you did not install Python 3)

    su-c'yuminstallopenssl-devel'

Red Hat/Fedora has decided not to support ECC in OpenSSL due to patent concerns, so we now need to remove their restriction and manually import the required files.
Library
  1. Remove the ECC restriction
    1. Navigate to /usr/include/openssl
      cd/usr/include/openssl
    2. Open the OpenSSL configuration file for editing using your editor of choice
      su-c'viopensslconf-i386.h'
    3. Remove the flags that restrict the use of ECC

Delete (at the beginning of file):

Delete (later on the file):

Save the file and close it

  1. Add the ECC files
    1. Navigate to http://www.openssl.org/source/ and download the latest version of openssl source and untar the tar ball.
    2. Navigate to /path/to/openssl-[version]/include/openssl (ie inside the untarred file)
      cd/path/to/openssl-[version]/include/openssl
    3. Add the new files to the current OpenSSL installation
      su-c'yesn|cp*/usr/include/openssl'
Next, we will install Charm. Navigate to the Charm directory.
  1. We must first run the configuration script:

    su-c'./configure.sh'

    [If you installed Python 3 and would like to use that, you will need to add -–python=/path/to/python3]

  2. Now we will build and install Charm:

    su-c'make'

    su-c'makeinstall'

  3. And finally we must rebuild the searchpath for libraries

    su-c'ldconfig'

Install Gmp Library Mac Os

Mint x86_64¶

Before installing Charm, there are a few prerequisites that need to be installed on your system. These are:
  1. Subversion

    sudoapt-getinstallsubversion

  2. m4

    sudoapt-getinstallm4

  3. Python 3 (this is an optional, though recommended, step)

    sudoapt-getinstallpython3

  4. Header files/static library

    sudoapt-getinstallpython-dev (if you did not install Python 3)

    sudoapt-getinstallpython3-dev (if you did install Python 3)

  5. libssl-dev (only necessary if you did not install Python 3)

    sudoapt-getinstalllibssl-dev

  6. This distro doesn’t seem to come with binutils or gcc make sure you install those.

Next, we will install Charm. Navigate to the Charm directory.
Mac
  1. We must first run the configuration script:

    sudobash./configure.sh

    [If you installed Python 3 and would like to use that, you will need to add -–python=/path/to/python3]

  2. Now we will build and install Charm:

    sudomake

    sudomakeinstall

  3. And finally we must rebuild the searchpath for libraries

    sudoldconfig

Building in Windows¶

Note that the entire compilation process is now supported by the Charm configure/make scripts. The steps for building in mingw32 this way are:
  1. Download the latest source version of openssl.

  2. Run MinGW Shell.

  3. Extract openssl, configure and install as shown below.

  4. Extract Charm, and navigate to the top directory.

  5. Run configure.sh as shown below.

  6. Confirm that you have installed the dependencies above. Then, proceed as follows:

    make

    makeinstall

Note

Another way to install dependencies is to follow the Windows blocks below.

MinGW32¶

Let’s first build our dependencies with the following scripts:

To build the GMP library:

Install Gmp Library Macomb

To build the openssl library:

To build the PBC library:

To build the Charm library:

Building in Mac OS X¶

Leopard v10.6¶

Note that the entire compilation process is supported by the Charm configure/make scripts. The steps for building in os x this way are:
  1. In a terminal, run configure.sh

  2. Confirm that you have installed the dependencies above.

  3. The next steps may require super user privileges so prepend a sudo to each command:

    make

    makeinstall

    maketest

Note

Another way to install dependencies is to use macports or fink.

Install Gmp Library Mac

Lion v10.7 and Mountain Lion v10.8¶

In Lion, Apple has made the decision to deprecate the openssl library in favor of their Common-Crypto library implementation. As a result, you’ll have to make some modifications to the library in order to use it with Charm. Please follow the steps below then proceed to install Charm:
  1. Edit the crypto.h header file at /usr/include/openssl/crypto.h
  2. Add the following before the crypto.h header definition:
  1. Next, we can install Charm. Run the configure script as before, but due to some changes in the default compiler installed we have provided a command line option to account for these changes:

    ./configure.sh--enable-darwin

  2. The next steps may require super user privileges so prepend a sudo to each command:

    make

    makeinstall

    maketest