I need to speed up a travis package generation in which I need
brew install fftw --with-openmp
that takes ~20 minutes to build and most of the time Travis kills my job.
My idea is to create another repo in which (once in a while) I generate the binary bottled version of fftw --with-openmp and then from my application repo intall that particular bottled version. I'm stuck in this last part...
I created an empty repo linked to travis (https://github.com/iltommi/fftw-openmp) in which I just have a .travis.yml :
os: osx
osx_image: xcode7.1
sudo: required
script:
- export COMPILER=g++-6
- brew update; brew tap homebrew/science
- brew install --build-bottle fftw --with-openmp
- brew bottle fftw
- export RELEASE_FILE=$(ls fftw*bottle*.tar.gz)
- ls -la
deploy:
provider: releases
edge:
branch: releases-fix
api_key: $github_token
file: "${RELEASE_FILE}"
skip_cleanup: true
overwrite: true
So I get a file in the releases (https://github.com/iltommi/fftw-openmp/releases)
Now, How do I install from my other repo?
I can get it via wget but then?
Thanks
It looks like it has been answered here https://apple.stackexchange.com/a/204833/99311:
I'll leave this in case someone else need this on stackoverflow:
brew install -f fftw-3.3.5.yosemite.bottle.1.tar.gz
where fftw-3.3.5.yosemite.bottle.1.tar.gz is the file generated by the commands
brew install --build-bottle fftw --with-openmp
brew bottle fftw
Related
I'm getting this error when I'm running the following command to install tensorflow.
python3 -m pip install tensorflow-macos
ERROR: Failed building wheel for h5py
Failed to build h5py
ERROR: Could not build wheels for h5py, which is required to install pyproject.toml-based projects
I tired to install this wheel manually, from the official link (https://pypi.org/project/h5py/#files), it got installed properly but I'm still getting the same error.
I'm facing the above issue in Mac Book M1 chip.
The official doc to use brew install.
$ brew install hdf5
If the above command gives you rosetta 2 issue, then run:-
arch -arm64 brew install hdf5
Once, the h5py installation is done, run following 2 commands:-
$ export HDF5_DIR=/opt/homebrew/Cellar/hdf5/1.12.0_4 OR export HDF5_DIR=/opt/homebrew/opt/hdf5 (if hdf5 is installed in the "/opt/homebrew/opt/hdf5" location, you have to check it out first)
$ pip install --no-binary=h5py h5py
Note:- in the first command "1.12.0_4" is the version of hdfc installed in my system, you have to change it according to yours.
If you are getting the aforementioned error implies you must be using poetry.
Finally run:-
poetry install
We are running the above command, In case poetry wants to update anything.
Once we run poetry install, it might update existing libraries or download new libraries.
So we have to update poetry.lock file as well.
poetry lock
After installing hdf5 try "export HDF5_DIR=/opt/homebrew/opt/hdf5"
Ref: https://github.com/h5py/h5py/issues/2035#issuecomment-1028226141
This works for me:
Install brew (https://brew.sh/)
brew install hdf5
export HDF5_DIR=$(brew --prefix hdf5) (as #sgt pepper said)
pip install --no-binary=h5py h5py
How do I force brew to install latest version of neovim (ver 0.5.0) when brew's formula only has 0.4.3?
I have tried:
brew update
brew upgrade neovim
And it says: Warning: neovim 0.4.3 already installed
I went brew's git repo and checked on neovim formula. Brew has neovim's 0.4.3, not 0.5.0. So brew update/upgrade is not going to help. https://github.com/Homebrew/homebrew-core/blob/master/Formula/neovim.rb
I'm thinking of just downloading neovim from neovim repo and installing it manually, but I'm afraid I'll have to manage updates and dependencies if I do this manual install.
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-macos.tar.gz
tar xzf nvim-macos.tar.gz
./nvim-osx64/bin/nvim
What should I do?
I fixed this with the following steps:
1) Unlink old neovim version:
brew unlink neovim ... and 2)
Install pointing to head:
brew install --HEAD neovim
... This installed neovim 0.5.0.
According to the brew doc, brew install --HEAD will install the master branch of the package. For neovim, it means that the latest version of neovim will be built for you, which may not be stable enough or even compile.
I suggest you install the nightly binary version of neovim. The best way to get the nightly version is to download from the binary release. No dependency is required to install if you download the binary release.
If you don't want to do this manually, you can write a bash script to automate this.
I am a homebrew novice and have a tap with a single package, mark-on-mac (https://github.com/sjbonner/homebrew-tap). The tap is simply a wrapper for the executable of Program MARK for the analysis of mark-recapture data that defines the location for the gcc libraries.
I have updated the formula several times (now on v0.0.7), but the command
brew install mark-on-mac
always finds and installs version v0.0.3. In order to install the up-to-date version I have to specify my tap
brew install sjbonner/tap/mark-on-mac
Here's a listing showing the behaviour when I don't and then do specify the tap
Simons-MBP:homebrew-tap sbonner$ brew info mark-on-mac
mark-on-mac: stable 0.0.3
Command-line version of Dr. Gary White's mark-recapture software
http://warnercnr.colostate.edu/~gwhite/mark/mark.htm
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/mark-on-mac.rb
Simons-MBP:homebrew-tap sbonner$ brew install mark-on-mac
==> Downloading https://github.com/sjbonner/mark-on-mac/archive/v0.0.3.tar.gz
==> Downloading from https://codeload.github.com/sjbonner/mark-on-mac/tar.gz/v
0.8# 2.1######## 12.1############### 22.2###################### 31.3########################### 38.5################################## 48.4########################################## 59.2################################################# 69.1######################################################## 79.0################################################################ 89.7######################################################################## 100.0%
🍺 /usr/local/Cellar/mark-on-mac/0.0.3: 5 files, 4.0MB, built in 6 seconds
Simons-MBP:homebrew-tap sbonner$ brew uninstall mark-on-mac
Uninstalling /usr/local/Cellar/mark-on-mac/0.0.3... (5 files, 4.0MB)
Simons-MBP:homebrew-tap sbonner$ brew info sjbonner/tap/mark-on-mac
sjbonner/tap/mark-on-mac: stable 0.0.7
Command-line version of Dr. Gary White's mark-recapture software
http://warnercnr.colostate.edu/~gwhite/mark/mark.htm
Not installed
From: https://github.com/sjbonner/homebrew-tap/blob/master/mark-on-mac.rb
Simons-MBP:homebrew-tap sbonner$ brew install sjbonner/tap/mark-on-mac
==> Installing mark-on-mac from sjbonner/tap
==> Downloading https://github.com/sjbonner/mark-on-mac/archive/v0.0.7.tar.gz
Already downloaded: /Users/sbonner/Library/Caches/Homebrew/downloads/a0310eb4eafbf40481bd5f010d2e369da2f91c41a203b508c340bfad893fd501--mark-on-mac-0.0.7.tar.gz
🍺 /usr/local/Cellar/mark-on-mac/0.0.7: 5 files, 4MB, built in 3 seconds
Removing: /Users/sbonner/Library/Caches/Homebrew/mark-on-mac--0.0.3.tar.gz... (1.7MB)
Simons-MBP:homebrew-tap sbonner$
Can anyone tell me why this is happening? Why does v0.0.3 get installed by default? How can I stop this?
Thanks in advance!
Simon
It seems the local repository sjbonner/tap is outdated. You need to sync your local repo with the remote one.
# cd into the local repo
cd "$(brew --repo sjbonner/tap)"
# find out the latest commit locally
git log -s -1
# compare the commit with your remote repo
# if the repo is outdated, run
brew update
So I want to debug my Phonegap webapp locally in Xcode.
I follow the step here and here, and launch in MAC CLI
$ sudo npm install -g phonegap
BUT install failed and CLI result get lots of errors with the first one is :
engine phonegap#2.9.0rc1-0.12.0: wanted: {"node":">=0.10.0"} (current: {"node":"v0.8.8","npm":"1.1.59"})
I understand my node version is too old : 0.8.8
node --version
I try to update but I am stuck with those 2 methods here and both in errors for me :
BREW
Tried Homebrew but did not work :
$ brew upgrade node
Error: node-0.8.8 already installed
NPM
As I found here
Upgrading Node.js to latest version
How do I update Node.js?
$ sudo npm install -g n
$ sudo n stable
sudo: n: command not found
In fact my bash_profile was missing the path to the n module as I found here:
cannot install npm? problems generating application
Edit your ~/.bash_profile. Add this export somewhere.
export PATH=/usr/local/bin:$PATH:/usr/local/share/npm/bin
I had the same issue and fixed it by upgrading node with brew, I just run
brew install --upgrade node
I'm setting up a new Mac for development with Ruby on Rails. I have installed XCode (including command line tools), Homebrew, and RVM properly. However, when I try to install the 2.0.0 Ruby version via RVM, I keep having to install libksba, which tries to install the dependency libgpg-error. The log tells me it's downloading the file, but it never does anything. I've let it run for 30 minutes before and still doesn't do anything. The file is supposed to be a few hundred KB, so it's not very large...Below is the code I'm running:
$ brew install libksba
==> Installing libksba dependency: libgpg-error
==> Downloading ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.11.tar.bz
This will just sit there and do nothing. Is there another repository where I can download the file from and manually install it? It's frustrating to not be able to develop because of simple dependency errors. Any suggestions would be greatly appreciated.
These are the formulas associated with libksba and libpgp-error: Homebrew Libksba Formula and Homebrew Libgpg-Error. Try first updating Homebrew, since the discrepancy between the version shown in your logs and the one in the repo tells me is outdated:
brew update
brew install libksba
If that doenst work, then you can download it from here:
url 'ftp://ftp.gnupg.org/gcrypt/libksba/libksba-1.3.0.tar.bz2'
url 'ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.11.tar.bz2'
mirror 'http://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.11.tar.gz'
So I found out the problem; my network is running through a 2nd router that was blocking FTP. I skipped the 2nd router and connected to the primary router and brew install libksba worked just fine. Credit goes to fmendez who provided a mirror link that led me to check out the router ports for FTP.
For others coming to this question, the above instructions do work for manually downloading and installing the formulas. I also recommend checking out Homebrew Tips n Tricks for additional help on which commands to run.
You can try the following steps ( Ref from here )
cd /usr/local/src
curl -O ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.9.tar.gz
tar -xvf libgpg-error-1.9.tar.gz
cd libgpg-error-1.9/
./configure
make
make install
cd ..
curl -O ftp://ftp.gnupg.org/gcrypt/libksba/libksba-1.2.0.tar.bz2
tar -xvf libksba-1.2.0.tar.bz2
cd libksba-1.2.0/
./configure
make
make install