Homebrew.jl icon indicating copy to clipboard operation
Homebrew.jl copied to clipboard

Homebrew.jl and Homebrew differences

Open nsmith5 opened this issue 7 years ago • 2 comments

@staticfloat I'm trying to add a build script to Maxima.jl using Homebrew.jl. Seem to be getting some odd errors that don't show up if I use the system homebrew to install maxima. Is there any difference between the system homebrew and Homebrew.jl recipes?

System homebrew install goes like this

brew update
brew tap homebrew/science
brew install maxima

and Homebrew.jl install goes like this,

Homebrew.add("homebrew/science/maxima")

Maxima hangs with

WARNING: Maxima is unable to set up the help system.
(Details: CL-INFO::LOAD-PRIMARY-INDEX: Couldn't load
 "/usr/local/Cellar/maxima/5.38.1/share/info/./maxima-index.lisp":
  file does not exist.)

Which sounds like the installation prefix hasn't been set properly or something? I'd appreciate any help with this if anyone has time. I don't have mac so the debugging process has been, well, slow..

nsmith5 avatar May 18 '17 02:05 nsmith5

Hmmm, sounds like the Maxima formula is not relocatable. We do our best to fool Homebrew into just blindly accepting that every bottle is relocatable, but in this case it looks like it doesn't work.

Many software packages hardcode their installation prefix into themselves, which makes it very difficult to relocate them to your home directory, which is what we need to do for Julia, since in general you don't have control over /usr/local. What I'd suggest is looking through the Maxima software package and seeing if there's some kind of environment variable you can set to inform Maxima as to what its installation prefix actually is. We set environment variables to do this in packages like Gtk.jl, so if such an environment variable exists, we can use that. Note that the __init__bindeps__() function defined in Gtk.jl must be manually called within your module's __init__() function.

staticfloat avatar May 18 '17 16:05 staticfloat

Great, thanks for the tip. I'll take a look and see what I can find.

nsmith5 avatar May 19 '17 13:05 nsmith5