-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with local build instructions on Mac (and perhaps other 'nix platforms) #123
Comments
Success, sort of.... In addition to the monkey patch I linked to above, I had to add this to
I think there are a couple of other places I could have stuck that. Let me know if you want me to write this up into install instructions. |
holy moly, thanks for all of this information. @emdupre you may be interested in this too in thinking about whether we should try to use something that's less of a hassle like hugo instead of jekyll |
another quick question for you: it seemed like the ruby gems header problem wasn't present when using Ruby installed with |
I was using the version from defaults, can try with the conda-forge version in a fresh environment if you want:
|
@mwcraig if conda-forge doesn't work, could you try with |
@choldgraf -- with just a touch of modification things seem to work with the conda-forge ruby. The twist is that the compilers either need to be installed before ruby or the ruby version needs to be pinned because the version on main is a more recent version than the one on conda-forge. So this should work:
OR
It may still be necessary to do the header thing on OSX...I'm not sure because I don't know how to undo the header installation and didn't want to risk breaking things by deleting stuff from |
Thanks for the tip, @mwcraig ! It sounds like you've gotten it all working now ? We're starting to add Docker installation instructions in #127 to hopefully avoid some of these installation headaches. We'd really appreciate your feedback there, if you're interested ! Either way, thanks again for keeping us updated -- happy to hear it seems to be working ✨ |
Yep, it is all working now. You should add installation of the conda-forge compilers to the install instructions for mac/linux because both platforms will need them. |
To wrap this up, these steps worked for me in a clean environment on a system on which I had upgraded to mojave fairly recently (so the headers are not in the standard places); it ends being simpler than what I originally reported. The first two steps will be necessary on mac and linux. The list step should be needed only on OSX 10.14 or later: # Line below should change for linux...
conda install clangxx_osx-64
conda install -c conda-forge ruby
# OSX 10.14+ only:
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg |
Can open a PR to the instructions for this Wednesday am.... |
@mwcraig please do! improvements here are most-welcome :-) |
It turns out that the instructions for doing local builds ( at least on a Mac) don't work. The steps I've gone through so far to make progress (with links to some of the relevant roadblocks) are:
xcode-select --install
) (may not be necessary depending on how recent your last OS update was).gem
itself (see this in-progress update to the jupyter-book instructions, which includes a link to a statement from the bundler folks and an answer on stackoverflow). THIS IS NOT MAC-SPECIFICconda install clangxx_osx-64
(see https://stackoverflow.com/questions/47314899/how-to-avoid-clang-no-such-file-or-directory-error). My hunch is that something like this is needed on linux too.Once that stuff is done,
make install
proceeds much farther, until it gets to buildingeventmachine
, which uses openssl, and it can't find the headers for that:That led me to this anaconda issue about building gems. I tried the monkey patch at ContinuumIO/anaconda-issues#9863 (comment) but it didn't do the trick for me.
Will continue trying for a little bit longer and report back if I get something to work.
The text was updated successfully, but these errors were encountered: