Install Victor Shoup's NTL library on Mac OS X - macos

I am trying to install Victor Shoup's NTL package on a fully up-to-date Mac (latest OSX etc).
I downloaded the latest package (NTL 6.0.0) from http://www.shoup.net/ntl/download.html, unpacked it and ran the configure script
./configure PREFIX=$HOME/NTL NTL_GMP_LIP=on
to indicate that I want the package to be installed in a directory $HOME/NTL and that GMP is already installed in a standard place.
The compilation
make
appears to work fine.
However, when I do
make check
on the compiled code, then it starts the tests, does a few of them correctly, but then simply refuses to complete the test called ZZXFacTest.
According to the Activity Monitor, the test is just running, but it never seems to terminate.
On a recent Linux machine, the exact same process finishes correctly.

SOLVED - the problem was to do with GMP.
When I turned off the "GMP is locally installed" flag, the checks worked, so I reinstalled the most recent version of GMP and it all worked...

Related

Building gdb from source on MacOS

I'm trying to install a cross-compiled gdb on an Apple M1 MacBook. I downloaded gdb 11.1 and did:
/tmp/src/gdb-11.1/configure --enable-targets=all
make
sudo make install
The commands seemed to have completed without error. All the relevant files seems to be installed when I check /usr/local/include, /usr/local/lib, etc., but the actual binary for gdb is nowhere to be found.
Ideas?
GDB is not supported on MacOS/m1 (aarch64).
You can track (authoritative) updates on the GDB discussion lists. The link below is latest status (July 2022). Currently there are no contributors working on it, only option appears to be LLDB (which should be able to handle "-O0" code).
https://inbox.sourceware.org/gdb/3185c3b8-8a91-4beb-a5d5-9db6afb93713#Spark/

wireshark - install stable and development builds in OS X

How can I install both (at the time of writing) 1.12.5 and 1.99.6 in OS X 10.8.5?
AFAIK Wireshark installs to the kMDItemCFBundleIdentifier path.
For lack of answers I tried the following. I installed the stable release 1.12.5 first and moved the application bundle to the trash, then I installed the dev version 1.99.6 and renamed the app bundle 'Wireshark [dev build]', next moved the older version from the trash to the applications folder. So far both are working. ChmodBPF and wireshark CLI utility launcher didn't changed. I didn't notice any problems in the install scripts, but I might be wrong.

Issue completing the install script for pkgin/pkgsrc for OSX 10.7, segfault running pkgin

In attempting to install pkgin/pkgsrc (NetBSD-based package managment tools), using the saveosx.org instructions and github repository.
The repository has installation instructions, which I followed, up to the point of a specific but uninformative error:
It looks like there was an issue running: sudo /usr/pkg/bin/pkgin -y update
I tried running this file directly, but my terminal reports a segmentation fault.
I'm running OSX 10.7.5 and have Xcode-Command-Line Tools installed, but I find no information about Darwin version compatibility on NetBSD's site. My searches have revealed no one else reporting issues using pkgin.
Version 5.0+ is supported according to www.netbsd.org/docs/pkgsrc/platforms.html#darwin, which according to wikipedia (en.wikipedia.org/wiki/Darwin_%28operating_system%29#Release_history) corresponds to OSX 10.1.1+
What options do I have besides upgrading my operating system and hoping the problem is fixing by having newer libraries or a newer kernel?
For reference:
www.pkgsrc.org/#docs
www.perkin.org.uk/pages/pkgsrc-binary-packages-for-osx.html
wiki.netbsd.org/pkgsrc/pkgsrc_64bit_osx/
Related question: Unable to run pkgin on Mac OSX
It would appear that the pkgin binary currently supplied by saveosx is compiled only for more recent OSX releases. It needs at least a Darwin-14.x kernel, or newer, so it won't even run on 10.9.5. Unfortunately the script fails to check the OSX version before it blindly tries to run the pkgin binary, causing the program to crash.
saveosx is basically a painfully obnoxious, rather ugly, and poorly implemented. set of scripts that are superfluous to actually using pkgsrc on OSX.
I would strongly recommend avoiding saveosx for the time being.
Instead I would recommend trying the following well supported alternative:
OSX binary pkgsrc packages
A 32-bit Snow Leopard version that runs on 10.6.8 and newer is available, and I just checked the distribution directory and I see some 2015Q1 i386 packages are just now available, still supporting 10.6.8:
2015Q1 32-bit (i386) Snow Leopard and newer pkgsrc bootstrap
You can of course also build your own pkgsrc bootstrap for any specific OSX environment:
pkgsrc home

How can I build an RPM on my MacOS system?

I'm running Mac OS X 10.6.6. I have some data-only RPMs that I'd like to build.
Until recently I've done most of my development on a VM running CentOS, but one by one I've been able to transition these tasks to the Mac proper. I've been using Fink to access the Open/Free tools I need, but I'm not ready to go to Fink unstable, where the RPM5 package has been for a while.
I've also tried to build the RPM utilities from source, with little luck so far.
Is anyone else building RPMs natively on a Mac? If so, how?
You can install rpmbuild on MacOS using Homebrew package manager.
brew install rpm
This installs a bunch of packages including rpmbuild which is used to build an rpm. You can then run the following command to create an rpm
rpmbuild <specfile>
I was in this same situation today, but I've just successfully built and run rpm by first installing MacPorts and then installing from there. It requires an absolutely ludicrous 1.8GB of downloads before you can even build because it requires installing the (free) Xcode developer tools package from the Apple Store at 1.6GB, then another 140MB package of command line tools.
So, first carefully follow every step of the clear instructions here to install MacPorts:
http://www.macports.org/install.php
After doing all that, be sure to run the update command (as mentioned in the install instructions) so that it downloads the available software ports package (it'll say "can't find rpm" if you don't):
sudo port -v selfupdate
Once all that is done, run the following to fetch rpm and build it:
sudo port install rpm
On my early 2011 MacBook Pro with Lion, it took about 10 minutes to download everything and build.
The whole process takes a while, but it works. Good luck!
As #user132447 pointed out, you will need to reformat the drive to MacOS extended (case sensitive).
The rpm which is part of CentOS is different then the RPM5 build. Both are two different projects. And later may work on MacOS, but I would recommend you to go using VMs (or separate systems) which are RPM based only. That will surely save you long hours of fixing and caring about not so useful issues.
RPM from rpm.org doesn't support MacOS yet (it builds I guess - at least the latest version), and this is the rpm which CentOS uses.
I've been using RPM for Darwin for building maven based projects that create RPM artifacts.

How to install macports openmpi on Mac osx 10.5.8?

I want the latest version of openmpi. I like to use macports because it is easy to install, uninstall, and upgrade software. I have installed the latest mpi via building from source, but no one seems to be able to get it to build properly with macports. There is always a build error. There are tickets (and you can see the logs at ), but they seem to be collecting dust and it seems strange that no one had found a solution.
I have tried uninstalling the built in version (I know, openmpi says not to do that--but it works fine if I reinstall it--even in a different directory), but I still the same build errors. I also tried with different gcc.
Does anyone know what is so difficult about getting openmpi via macports?
sudo port install openmpi
worked for me

Resources