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.
Related
Homebrew suddenly stopped working, when i run any brew command i get following output:
==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz
Already downloaded: /Users/<user>/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz
/usr/local/Homebrew/Library/Homebrew/cmd/vendor-install.sh: line 123: /usr/bin/cut: cannot execute binary file
Error: Checksum mismatch.
Expected: b065e5e3783954f3e65d8d3a6377ca51649bfcfa21b356b0dd70490f74c6bd86
Actual:
Archive: /Users/<user>/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz
To retry an incomplete download, remove the file above.
Error: Failed to upgrade Homebrew Portable Ruby!
I already tried to remove the file portable-ruby-2.6.3_2.yosemite.bottle.tar.gz but it doesn't work and i couldn't find any helpful information about this error on Google.
Any help is appreciated.
There are several things that I can think of for your situation.
Your output has yosemite identifier, to be clear, MacOS Yosemite is actually 10.10.x, it is not in the current/latest homebrew support list, and also different from 10.14 Mojave in your problem title. So if you are actually using Mojave, you can keep your brew up to date and reinstall ruby.
The latest Ruby formula is actually 2.7.x, you might want to reinstall/upgrade (brew reinstall ruby/brew upgrade ruby).
In all, if you still run into an issue, please attach the outputs of brew config and brew doctor for troubleshooting.
Try brew update-reset and then try brew upgrade.
It's set portable-ruby-2.6.3_2.yosemite.bottle.tar.gz was already downloaded so I removed it and it went through henceforth.
I seem to not be able to get away from oh_my_zsh, which is causing errors.
When I run npm install, I am getting the error: zsh: command
not found: npm.
When I check which version of node I am running, I get zsh: command
not found: node. Node is definitely installed.
I tried uninstalling oh_my_zsh using uninstall_oh_my_zsh and
trying npm install again. I again get the error zsh: command not found: npm.
I tried uninstalling oh_my_zsh with Homebrew. I got the error zsh: command not
found: brew.
I tried restarting Terminal, and visually verified oh_my_zsh is not installed. I still get these errors.
I tried reinstalling oh_my_zsh, using sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)". Still get zsh: command not found: node
I don't have a problem with oh_my_zsh (or homebrew); I actually like it. I used to have a work around. I have not installed anything recently.
eta: In addition to this, I've tried updating homebrew, thinking that there was some issue with Homebrew. But ultimately error when I using Homebrew is
Error: /usr/local/opt/pkg-config not present or broken. Please reinstall pkg-config.
Apparently Homebrew was able to update Auto-updated Homebrew! and then started to clean up packages and started to upgrade node.
I got the following Caveats and then the error.
This formula is keg-only, which means it was not symlinked into /usr/local,
macOS provides libicucore.dylib (but nothing else).
If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.zshrc
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/icu4c/lib
CPPFLAGS: -I/usr/local/opt/icu4c/include
==> Summary
🍺 /usr/local/Cellar/icu4c/60.2: 249 files, 68.2MB, built in 6 minutes 47 seconds
==> Installing node
Error: /usr/local/opt/pkg-config not present or broken
Please reinstall pkg-config. Sorry :(
Solution: Apparently node wasn't installed or not installed correctly. I used the package installer from nodejs.org, not the Homebrew installation, to install node. npm install, node -v work as they should. I do get warnings when I run brew doctor, including mentions of node headers, but I will ignore them until something stops working again.
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
After running brew install vim, I get this error:
checking for tgetent()... configure: error: NOT FOUND!
You need to install a terminal library; for example ncurses.
Or specify the name of the library with --with-tlib.
Not sure how to go about fixing this.
You need to install developer tools from Xcode before. Or set up your env handly but you might have other binaries missing later. So I recommend you to install Xcode. And then developer tools. And finally get Vim ;). I even think that Vim is installed by default with developer tools.
Get it here :
https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12
I ran into this problem as well. When running brew doctor, I found an ncurses5-config in the path, which seemed to be confusing homebrew. I uninstalled the chefdk, installed the latest xcode, run brew doctor to ensure the library is gone, and then run brew install vim.
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/opt/chefdk/embedded/bin/finstyle-config
/opt/chefdk/embedded/bin/ncurses5-config
/opt/chefdk/embedded/bin/ncursesw5-config
/opt/chefdk/embedded/bin/pkg-config
/opt/chefdk/embedded/bin/xml2-config
/opt/chefdk/embedded/bin/xslt-config
This worked for me on Mac 10.11.4
brew install vim --with-tlib
You might also want to use --with-override-system-vi flag as well
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