Why the below error occurred when I wanted to install neovim via a homebrew?
==> Installing dependencies for neovim: libuv, luajit-openresty, luv, msgpack and tree-sitter
==> Installing neovim dependency: libuv
==> Pouring libuv-1.43.0.big_sur.bottle.tar.gz
Error: No such file or directory # rb_sysopen - /Users/bytedance/Library/Caches/Homebrew/downloads/e6dab71479a311084c88f44f8dbe535d87ad677c27a85144266f8d0168bce483--libuv-1.43.0.big_sur.bottle.tar.gz
homebrew version:
Homebrew 3.3.9
Homebrew/homebrew-core (git revision 62b6b918f65; last commit 2022-01-06)
Related
Truly I don't get it what is wrong. I've got fresh project with Rails 7 and Ruby 3.1.2 which I thought I had installed successfully, based on my iTerm2 console:
$ ruby --version
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-darwin21]
But after firing up the command spring stop inside my project path I'm getting this weirdo:
➜ merchant-portal git:(main)$ spring stop
rbenv: version `ruby-3.1.2' is not installed (set by /Users/some_user/merchant-portal/.ruby-version)
What's going on?
I tried installing the Ruby 3.1.2 again but I'm getting another weirdo:
$ rbenv install 3.1.2
Downloading ruby-3.1.2.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.2.tar.gz
Installing ruby-3.1.2...
ruby-build: using readline from homebrew
BUILD FAILED (macOS 12.5 using ruby-build 20220726)
Inspect or clean up the working tree at /var/folders/bw/rs138g1n5zv_qwn7_7kggc9r0000gq/T/ruby-build.20220801173008.20865.CTLYIi
Results logged to /var/folders/bw/rs138g1n5zv_qwn7_7kggc9r0000gq/T/ruby-build.20220801173008.20865.log
Last 10 log lines:
The Ruby yaml extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Configure options used:
--prefix=/Users/some_user/.rbenv/versions/3.1.2
--with-openssl-dir=/Users/some_user/.rbenv/versions/3.1.2/openssl
--enable-shared
--with-readline-dir=/usr/local/opt/readline
CC=clang
LDFLAGS=-L/Users/some_user/.rbenv/versions/3.1.2/lib
CPPFLAGS=-I/Users/some_user/.rbenv/versions/3.1.2/include
I've tried to reinstall xcode with:
$ rm -rf /Library/Developer/CommandLineTools
$ xcode-select --install
(...)
Done
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
And again reinstall Ruby 3.1.2 but it shows me the same error:
$ rbenv install 3.1.2
(...)
BUILD FAILED (macOS 12.5 using ruby-build 20220726)
(...)
Last 10 log lines:
The Ruby yaml extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
(...)
I've also tried to:
RUBY_CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl` --with-readline-dir=`brew --prefix readline` --with-libyaml-dir=`brew --prefix libyaml`" rbenv install 3.1.2
But it shows me the same error.
HTTP module installation is failing on Ubuntu with following error:
root#someserver:/var/log# luarocks install http
Warning: falling back to wget - install luasec to get native HTTPS support
Installing https://luarocks.org/http-0.4-0.all.rock
Missing dependencies for http 0.4-0:
cqueues >= 20161214 (not installed)
luaossl >= 20161208 (not installed)
basexx >= 0.2.0 (not installed)
binaryheap >= 0.3 (not installed)
fifo (not installed)
http 0.4-0 depends on cqueues >= 20161214 (not installed)
Installing https://luarocks.org/cqueues-20200726.51-0.src.rock
Error: Failed installing dependency: https://luarocks.org/cqueues-20200726.51-0.src.rock - Could not find header file for CRYPTO
No file openssl/crypto.h in /usr/local/include
No file openssl/crypto.h in /usr/include
You may have to install CRYPTO in your system and/or pass CRYPTO_DIR or CRYPTO_INCDIR to the luarocks command.
Example: luarocks install cqueues CRYPTO_DIR=/usr/local
Any tips?
Seems OpenSSL isn't installed in your system. So try running:
sudo apt-get install libssl-dev
i try to install hhvm via
brew install hhvm
i got this error :
Sinas-MacBook-Pro:~ sinamiandashti$ brew install hhvm
==> Downloading https://github.com/facebook/hhvm/archive/HHVM-3.2.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/hhvm-3.2.0.tar.gz
==> Patching
patching file hphp/runtime/ext/gd/libgd/gdft.cpp
Hunk #1 FAILED at 63.
1 out of 1 hunk FAILED -- saving rejects to file hphp/runtime/ext/gd/libgd/gdft.cpp.rej
the formula is fixed
plz use
brew install hhvm --HEAD
Well, I just updated my brew and installed brew-cask formula on my machine after a brew tap phinze/cask command. Then I did brew cask install vagrant to install Vagrant and it suddenly popped this out: Error: No available cask for vagrant. Trying to figure out what's wrong I noticed that it's failing for ANY cask, neither the brew cask search works.
Am I missing any step? Shouldn't it work?
My brew cask doctor output:
==> OS X Version:
10.9.2
==> Hardware Architecture:
intel-64
==> Ruby Version:
1.8.7-p358
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
==> Homebrew Version:
0.9.5
==> Homebrew Executable Path:
/usr/local/bin/brew
==> Homebrew Cellar Path:
/usr/local/Cellar
==> Homebrew-cask Version:
0.32.0
==> Contents of $LOAD_PATH:
/usr/local/Cellar/brew-cask/0.32.0/rubylib
/usr/local/Library/Homebrew
/usr/local/Library/Homebrew/vendor
/Library/Ruby/Site/1.8
/Library/Ruby/Site/1.8/powerpc-darwin13.0
/Library/Ruby/Site/1.8/universal-darwin13.0
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby/1.8
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby/1.8/universal-darwin13.0
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/powerpc-darwin13.0
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin13.0
.
==> Contents of $RUBYLIB Environment Variable:
nil
==> Contents of $RUBYOPT Environment Variable:
nil
==> Contents of $RUBYPATH Environment Variable:
nil
==> Contents of $RBENV_VERSION Environment Variable:
nil
==> Contents of $GEM_HOME Environment Variable:
nil
==> Contents of $GEM_PATH Environment Variable:
nil
==> Contents of $BUNDLE_PATH Environment Variable:
nil
==> Running As Privileged User:
No
So it was buggy (issue #4032) and they fixed this unwelcome issue with Homebrew Cask 0.33.0 release.
To update, just run brew update && brew upgrade brew-cask and everything should work fine. :)
Result of 'bundle install' in Terminal:
An error occurred while installing pg (0.16.0), and Bundler cannot continue.
Make sure that `gem install pg -v '0.16.0'` succeeds before bundling.
Result of 'which psql' in Terminal:
/usr/bin/psql
/etc/paths looks like this:
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/Applications/Postgres93.app/Contents/MacOS/bin
Result of gem install pg
/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/gem:4: warning: Insecure world writable dir /usr/local in PATH, mode 040777
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
Result of brew install postgres:
Warning: A newer Command Line Tools release is available
The standalone package can be obtained from
https://developer.apple.com/downloads/,
or it can be installed via Xcode's preferences.
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/postgresql-
######################################################################## 100.0%
==> Pouring postgresql-9.3.2.mountain_lion.bottle.tar.gz
==> Caveats
If builds of PostgreSQL 9 are failing and you have version 8.x installed,
you may need to remove the previous version first. See:
https://github.com/Homebrew/homebrew/issues/issue/2510
To migrate existing data from a previous major version (pre-9.3) of PostgreSQL, see:
http://www.postgresql.org/docs/9.3/static/upgrading.html
When installing the postgres gem, including ARCHFLAGS is recommended:
ARCHFLAGS="-arch x86_64" gem install pg
To install gems without sudo, see the Homebrew wiki.
To have launchd start postgresql at login:
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
Then to load postgresql now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
Or, if you don't want/need launchctl, you can just run:
postgres -D /usr/local/var/postgres
Warning: Could not link postgresql. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link postgresql'
Possible conflicting files are:
Warning: Could not link postgresql. Unlinking...
Error: Permission denied - /usr/local/lib/pkgconfig
Not sure what else I can try - I have the Postgres app installed as well.
If you're using Postgress.app, you need to specify --with-pg-config when you install the Gem.
See this Q&A for details.