Errors installing OMake on OSX 10.10.5 - macos

I'm trying to install OMake so I can install Teyjus so I can start writing a bit of Lambda Prolog but I'm getting I'm getting a bunch of errors on OS X 10.10.5. The most current one, that I can't figure out, is:
*** omake: 497/1193 targets are up to date
*** omake: failed (5.99 sec, 124/124 scans, 81/94 rules, 258/1153 digests)
*** omake: targets were not rebuilt because of errors:
src/libmojave/lm_printf.cmx
src/libmojave/lm_printf.o
Has anyone run into this? Does anyone know of a fix? Would love to be able to get started.

Inspired by your posts (here and on /r/prolog) I decided to try and build Teyjus as well, and installed OCaml and OMake along the way. The following describes the steps I took to successfully install OCaml and OMake:
Installing OCaml
OCaml.org said the best way to install OCaml was to go through OPAM. However,
since I chose to install OPAM with homebrew, and OCaml was a prereq, I ended up
with the latest version of OCaml set up after the first two of the following steps:
Install opam via homebrew:
Following instructions from https://opam.ocaml.org/doc/Install.html
$ brew update
$ brew upgrade
$ brew install opam
Initialize opam
Following the instructions provided by the homebrew results, I ran
$ opam init # then `y` to allow alterations to the shell profile and another init file
$ eval `opam config env`
Installing standard libraries
If I'm going to have OCaml installed any how, I might as well get it set up
for proper use, cause eventually I'll want to play around with OCaml itself
again too. Thus, I took the advice of the OCaml installation instructions and
ran
$ opam install batteries core
Installing OMake
The OMake download page scared me. I thought, "hey, I've just installed
the robust OCaml package manager, OPAM, and OMake is written in OCaml – so maybe
I can find an OMake package on OPAM and dodge all those deadly bullet-points".
Thus I ran
$ opam show omake
And saw that omake 0.9.8.6-0 was on offer, which appears to be the most recent
one. So I installed it
$ opam update # just to be sure ;) But all was up to date
$ opam install omake
That should be it! I was able to build Teyjus from source subsequently (I'll post the whole record of my steps on the reddit thread).
As an FYI, adding information that answers a question you didn't ask, it looks like Teyjus binaries are also available for OSX: https://github.com/teyjus/teyjus/releases

Related

Failed to brew install pyqt on Mac OS Sierra via command line tool

I tried tobrew install pyqt.
However, it ends up with
make: *** [sub-plugins-make_default-ordered] Error 2
READ THIS: https://git.io/brew-troubleshooting
These open issues may also help:
qt: migrate to boneyard https://github.com/Homebrew/homebrew-core/pull/7019
Transition formulae to Qt 5 https://github.com/Homebrew/homebrew-core/issues/1705
pyqt depends on Qt4, which is End Of Life and not supported anymore. Therefore, the Homebrew pyqt package has been removed from the main repository and now lives in the boneyard.
You could try and install it from there:
brew install homebrew/boneyard/pyqt
However, perhaps it's better to take a look at pyqt5.

Homebrew error when attempting to execute ocamlc

What is going on if I get the following message after installing homebrew and OCaml? This is with Homebrew 0.9.5, with OCaml (objective-caml: stable 4.02.1 (bottled), HEAD) on OS X 10.9.5.
-bash: /usr/local/bin/ocaml: ##HOMEBREW_PREFIX##/bin/ocamlrun: bad interpreter: No such file or directory
I had failed to correct some errors found by brew doctor before I installed OCaml, specifically errors with user ownership in /usr/local/bin. After correcting the brew doctor errors, I executed brew link and everything seemed to be okay. However, I kept getting those bad interpreter errors. After a brew uninstall ocaml and a brew install ocaml, the bad interpreter error went away and OCaml behaved the way I expected.
You should try OPAM (http://opam.ocaml.org). It can not only install the compiler (apart from libraries), it also allows you to keep multiple versions of the compiler on the same machine and switch between them.

How to install an external package to /usr/local without troubling Homebrew?

I'm trying to install a package called Geant4 by compiling from source (HomeBrew actually has the package but it's an old version and doesn't have support for Python which I need).
I want to put the Geant4 package in /usr/local/geant4 (perhaps this is not the proper place to put it in OSX?).
Now, the Homebrew FAQ has some instructions on how to install external stuff, but when I do brew diy, I get the error message:
Error: Couldn't determine build system
The command I should use to configure Geant4 is:
cd ~/my-build-directory
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/geant4 ~/Downloads/geant4.10.01.p01
brew diy makes a good effort to determine how to build a package, but it doesn't always get it right. In the case of custom packages, it's probably best to install them into $(brew --prefix)/Cellar/$package/$version, just as Homerew would -- that way, you can interact with the package using brew link, etc. You can also install it to /usr/local or anywhere you like, but mimicking Homebrew works really well.
In your case, you could probably install it with something like:
cd /my-build-directory
cmake -DCMAKE_INSTALL_PREFIX=$(brew --prefix)/Cellar/geant4/10.01.p01 ~/Downloads/geant4.10.01.p01
brew link geant4

how to install libX11 on OSx 10.9?

I am trying to install ROOT (cern.root.ch). When I run ./configure , I get a message that libX11 is missing and must be installed.
I did some research and found that I need to install
) XQuartz (I already have the latest version.)
) Command line tools in Xcode.
I tried installing Command Line Tools from apple's developer website. The installation goes through smoothly but how do I know whether it has been installed? I still get libX11 missing error with root's configure command.
I also tried xcode-select --install and it once went through smoothly and then later again gives error saying this package is no longer maintained - or something of that sort.
I understand I may have multiple installations... But I am still facing the problem of not having libX11 and not being able to install ROOT.
Thanks,
Hershal.
This link and the one referenced in it suggests you use homebrew (brew) to install it
$ ruby <(curl -fsS https://raw.github.com/mxcl/homebrew/go)
$ brew doctor
Remember to add the Homebrew directory to your PATH by adding the directory (found with brew --prefix) to your .bashrc, .zshrc or whatever shell file you’re using (.bashrc is the OS X default). We’ll also add the XQuartz binaries to the PATH in case anything needs them in the future.
export PATH=/usr/local/bin:/opt/X11/bin:$PATH
Start a new Terminal session to pick up the changes.
Now that Homebrew is installed, we can use it to install the required dependencies. Each may take some time as Homebrew generally compiles from source.
$ brew install gfortran # Fortran compiler
$ brew install python # Python interpreter
$ brew install pcre # Regular Expressions library
$ brew install fftw # Fast Fourier Transforms
$ brew install cmake # Cross-platform make
install root
$ brew tap homebrew/science
$ brew install --with-cocoa root
You don't say whether you have installed XCode as well as the commandline tools but I think you will need it

How to install scons on Mac OS X

Can you please tell me how can I install scons on MacOSX?
I don't see a mac specified download from http://www.scons.org/
Thank you.
An alternative to MacPorts would be to use HomeBrew, where you'd just to
brew install scons
Download the tarball and then refer to the first chapter of the user guide, Building and Installing SCons. In short:
# cd scons-1.2.0
# python setup.py install
Install MacPorts, then at the Terminal (Applications > Utilities > Terminal.app), type:
sudo port install scons
This command will automatically download and install scons for you. MacPorts requires that you have the developer tools installed, so if you don't, you will need to download and install the Xcode 3 DVD.
NOTE 1: Xcode 2.5 is the last version of Xcode that will work on Mac OS X Tiger.
NOTE 2: This may seem awfully painful if you don't already have MacPorts installed. However, you really should go this route, as MacPorts makes it easy to update installed software, it automatically manages dependencies between software, and it makes it easier to install other packages in the future.
If you have the Python setuptools, the following will install scons-1.2.0 from sourceforge:
easy_install scons
But bear in mind the issues people raise with setuptools.
Also, keep in mind this question and the answers about virtualenv and pip for isolating Python environments.
There is also a GUI installer for SCons on Mac OS X that I wrote available for download here:
https://github.com/rviney/scons-mac-installer
Since version 2.3.0 SCons should work without installing:
# get the source and switch to stable 2.3.0 version
hg clone https://bitbucket.org/scons/scons/ -r 2.3.0
# make sure to use Python 2 for now
python scons/src/scripts/scons.py
When running 2.3.0 from source, the SCons.__version__ is not set correctly, so EnsureSConsVersion() will likely to fail if that's ok for you.
pull down SCons source and put it in /Library/Python/X.X/. Make sure you have the dir structure like this: /Library/Python/X.X/SCons/init.py
remember, import searches for modules, and /Library/Python/XXX is by default in the search path.

Resources