#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: | High → Normal |
Summary: | wget gmp configure error - installation failure → gmp 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)
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:
- Subversion
sudoapt-getinstallsubversion
- 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
- m4
sudoapt-getinstallm4
- libssl-dev
sudoapt-getinstalllibssl-dev
- We must first run the configuration script:
sudo./configure.sh--python=/path/to/python3
- Now we will build and install Charm:
sudomake
sudomakeinstall
- And finally we must rebuild the search path for libraries
sudoldconfig
- Run Pytests
sudomaketest
Ubuntu 11.04¶
- Subversion
sudoapt-getinstallsubversion
- m4
sudoapt-getinstallm4
- Python 3 (this is an optional, though recommended, step)
sudoapt-getinstallpython3
- Header files/static library
sudoapt-getinstallpython-dev
(if you did not install Python 3)sudoapt-getinstallpython3-setuptoolspython3-dev
(for Python 3.x)
- libssl-dev (only necessary if you did not install Python 3)
sudoapt-getinstalllibssl-dev
- 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
]
- Now we will build and install Charm:
sudomake
sudomakeinstall
- And finally we must rebuild the search path for libraries
sudoldconfig
- Run Pytests
sudomaketest
Ubuntu 13.04¶
- Subversion
sudoapt-getinstallsubversion
- m4
sudoapt-getinstallm4
- Python 3 (this is an optional, though recommended, step)
sudoapt-getinstallpython3
- Header files/static library
sudoapt-getinstallpython-dev
(if you did NOT install Python 3)sudoapt-getinstallpython3-setuptoolspython3-dev
(for Python 3.x)
- libssl-dev (only necessary if you did not install Python 3)
sudoapt-getinstalllibssl-dev
- GMP
sudoapt-getinstalllibgmp-dev
- We must first run the configuration script:
sudo./configure.sh
- Install PBC from source
./configureLDFLAGS='-lgmp'
make
sudomakeinstall
sudoldconfig
- Now we can build and install Charm:
sudomake
sudomakeinstall
- And finally we must rebuild the search path for libraries
sudoldconfig
- Run Pytests
sudomaketest
Fedora¶
- m4
su-c'yuminstallm4'
- Python 3 (this is an optional, though recommended, step)
su-c'yuminstallpython3'
- 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)
- openssl-devel (only necessary if you did not install Python 3)
su-c'yuminstallopenssl-devel'
- Remove the ECC restriction
- Navigate to /usr/include/openssl
cd/usr/include/openssl
- Open the OpenSSL configuration file for editing using your editor of choice
su-c'viopensslconf-i386.h'
- 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
- Add the ECC files
- Navigate to http://www.openssl.org/source/ and download the latest version of openssl source and untar the tar ball.
- Navigate to /path/to/openssl-[version]/include/openssl (ie inside the untarred file)
cd/path/to/openssl-[version]/include/openssl
- Add the new files to the current OpenSSL installation
su-c'yesn|cp*/usr/include/openssl'
- 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
]
- Now we will build and install Charm:
su-c'make'
su-c'makeinstall'
- And finally we must rebuild the searchpath for libraries
su-c'ldconfig'
Install Gmp Library Mac Os
Mint x86_64¶
- Subversion
sudoapt-getinstallsubversion
- m4
sudoapt-getinstallm4
- Python 3 (this is an optional, though recommended, step)
sudoapt-getinstallpython3
- Header files/static library
sudoapt-getinstallpython-dev
(if you did not install Python 3)sudoapt-getinstallpython3-dev
(if you did install Python 3)
- libssl-dev (only necessary if you did not install Python 3)
sudoapt-getinstalllibssl-dev
This distro doesn’t seem to come with binutils or gcc make sure you install those.
- 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
]
- Now we will build and install Charm:
sudomake
sudomakeinstall
- And finally we must rebuild the searchpath for libraries
sudoldconfig
Building in Windows¶
Download the latest source version of openssl.
Run MinGW Shell.
Extract openssl, configure and install as shown below.
Extract Charm, and navigate to the top directory.
Run configure.sh as shown below.
- 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¶
In a terminal, run
configure.sh
Confirm that you have installed the dependencies above.
- The next steps may require super user privileges so prepend a
sudo
to each command: make
makeinstall
maketest
- The next steps may require super user privileges so prepend a
Note
Another way to install dependencies is to use macports
or fink
.
Lion v10.7 and Mountain Lion v10.8¶
- Edit the
crypto.h
header file at/usr/include/openssl/crypto.h
- Add the following before the
crypto.h
header definition:
- 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
- The next steps may require super user privileges so prepend a
sudo
to each command: make
makeinstall
maketest
- The next steps may require super user privileges so prepend a