How to install neovim 0.5.0 with homebrew Brewfile? - homebrew

How can I install neovim 0.5.0 with Brewfile? I previously used brew install neovim --HEAD to get the latest build of neovim. As I have migrated to use Brewfile, this is the code I use for installing neovim in Brewfile
tap 'neovim/neovim'
brew "neovim", args: ['HEAD']
But with that and ran brew bundle install, I am still getting neovim 0.4.4 with nvim --version
NVIM v0.4.4
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-20210318-48132-k7r45c/neovim-0.4.4/build/config -I/tmp/neovim-20210318-48132-k7r45c/neovim-0.4.4/src -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/gettext/include -I/tmp/neovim-20210318-48132-k7r45c/neovim-0.4.4/build/src/nvim/auto -I/tmp/neovim-20210318-48132-k7r45c/neovim-0.4.4/build/include
Compiled by brew#BigSur
How can I fix this error?

This was probably an issue when 0.5 was being released. Now that 0.5.1 is stable, in your Brewfile, you should be able to just do
brew "neovim"
If you upgrade the formula, it will pull down latest stable which is 0.5.1 at the moment
brew upgrade neovim

Related

yosemite gem install fail

I am unable to run my bundle install after I upgraded to yosemite, the contents of mkmf.log are as follows
/usr/local/opt/gcc46/bin/gcc-4.6 -o conftest
-I/Users/mac/.rvm/rubies/ruby-1.9.3-p547/include/ruby-1.9.1/x86_64-darwin12.4.0
-I/Users/mac/.rvm/rubies/ruby-1.9.3-p547/include/ruby-1.9.1/ruby/backward
-I/Users/mac/.rvm/rubies/ruby-1.9.3-p547/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fno-common -pipe conftest.c -L. -L/Users/mac/.rvm/rubies/ruby-1.9.3-p547/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L. -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -lruby.1.9.1 -lpthread -ldl -lobjc
and it seems like it is trying to use gcc-4.6 but when I do gcc -v it gives me this
Configured with:
--prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) Target:
x86_64-apple-darwin14.0.0 Thread model: posix
I also tried doing a ln -s to link /usr/local/opt/gcc46/bin/gcc-4.6 but it was no help, I keep getting
/Users/mac/.rvm/rubies/ruby-1.9.3-p547/bin/ruby extconf.rb checking
if the C compiler accepts ... *** extconf.rb failed *** Could not
create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details.
You may need configuration options..
Any help would be really appreciated
try reinstall ruby with:
rvm get stable
rvm reinstall 1.9.3-p547
then bundle install
I had the same problem - turns out, I had to reinstall ruby in the newest version and build all gems pristine.
http://danielpuglisi.com/articles/2014/10/reinstall-ruby-after-upgrading-to-osx-yosemite
This solution worked perfectly, I removed all old versions that were listed in rbenv, then installed ruby 2.1.3 as described in the link, then used gem pristine --all, and I was good to go, no more annoying error messages.
The steps really depends on which one you are using, rbenv or rmv.

Trouble Installing Ruby 1.9.2 on OSX - Readline and Make errors

I keep getting these errors:
Error running 'make ', please read /Users/jason*/.rvm/log/ruby-1.9.2-p320/make.log
There has been an error while running make. Halting the installation.
ls: /Users/jason*/.rvm/rubies/*/bin/ruby: No such file or directory
I've tried installing readline and making sure I have the latest GCC version.
This is the error log.
/usr/bin/gcc-4.2 -dynamic -bundle -o ../../../.ext/x86_64-darwin11.3.0/racc/cparse.bundle cparse.o -L. -L../../.. -L/Users/jasonvdm/.rvm/usr/lib -L. -L/usr/local/lib -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -lruby.1.9.1 -lpthread -ldl -lobjc
compiling readline
/usr/bin/gcc-4.2 -I. -I../../.ext/include/x86_64-darwin11.3.0 -I../.././include -I../.././ext/readline -DRUBY_EXTCONF_H=\"extconf.h\" -I/Users/jasonvdm/.rvm/usr/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -o readline.o -c readline.c
readline.c: In function ‘username_completion_proc_call’:
readline.c:1386: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:1386: error: (Each undeclared identifier is reported only once
readline.c:1386: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [mkmain.sh] Error 1
Are you compiling Readline from source? It might be less painful to compile and install Readline via Homebrew, assuming that you have at least one working version of Ruby on your system.
Once you've done that, you can try the RVM install of Ruby 1.9.2 again, and it should skip the Readline compilation step.
Updated in response to comment:
So you are using a Homebrew installed Readline. In that case, find out where the new (less broken) Readline libs are installed, and try passing the location of that version of Readline to the RVM install process. Something like:
rvm install ruby-1.9.2-p320 -C
--with-readline-dir=/usr/local/Cellar/readline/6.2.1
Clearly, your directory will be slightly different the one in my example.
If you're using RVM, read the procedures in this question and answers.
You'd better install the readline library with rvm pkg command.

Rails 3.1- therubyracer gem error

Using VirtualBox inside of Windows7, it has Ubuntu. Just installed rails 3.1 and getting the following error when I try to bundle install with therubyracer gem.
Installing therubyracer (0.9.8) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/john/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
creating Makefile
make
g++ -I. -I/home/john/.rvm/gems/ruby-1.9.2-p290#rails311/gems/libv8-3.3.10.2-x86-linux/lib/libv8/v8/include -I/home/john/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/i686-linux -I/home/john/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/home/john/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -Wall -g -rdynamic -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -o v8_date.o -c v8_date.cpp
make: g++: Command not found
make: *** [v8_date.o] Error 127
Gem files will remain installed in /home/john/.rvm/gems/ruby-1.9.2-p290#rails311/gems/therubyracer-0.9.8 for inspection.
Results logged to /home/john/.rvm/gems/ruby-1.9.2-p290#rails311/gems/therubyracer-0.9.8/ext/v8/gem_make.out
An error occured while installing therubyracer (0.9.8), and Bundler cannot continue.
Make sure that `gem install therubyracer -v '0.9.8'` succeeds before bundling.
sudo apt-get install g++
Just to be sure, I also recommend:
sudo apt-get install build-essential

Failed to install "gem install eventmachine". I need starling in my project, for starling i need to install eventmachine

I am getting the following error on my console
root#comp09:~# gem install eventmachine
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... yes
checking for rb_thread_blocking_region()... no
checking for inotify_init() in sys/inotify.h... yes
checking for writev() in sys/uio.h... yes
checking for rb_thread_check_ints()... no
checking for rb_time_new()... yes
checking for sys/event.h... no
checking for epoll_create() in sys/epoll.h... yes
creating Makefile
make
I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DHAVE_INOTIFY_INIT -DHAVE_INOTIFY -DHAVE_WRITEV -DHAVE_WRITEV -DHAVE_RB_TIME_NEW -DOS_UNIX -DHAVE_EPOLL_CREATE -DHAVE_EPOLL -DWITH_SSL -fPIC -O2 -g -Wall -Wno-parentheses -Wno-long-long -o rubymain.o -c rubymain.cpp
make: I.: Command not found
make: [rubymain.o] Error 127 (ignored)
I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DHAVE_INOTIFY_INIT -DHAVE_INOTIFY -DHAVE_WRITEV -DHAVE_WRITEV -DHAVE_RB_TIME_NEW -DOS_UNIX -DHAVE_EPOLL_CREATE -DHAVE_EPOLL -DWITH_SSL -fPIC -O2 -g -Wall -Wno-parentheses -Wno-long-long -o em.o -c em.cpp
make: I.: Command not found
For any help and suggestion it would be greatly appreciated.
I had a similar issue on Ubuntu 11.10 installing eventmachine.
The difference being (near the end of the logs)
make: g++: Command not found
instead of
make: I.: Command not found
This issue is related with C++ on GCC and resolved by installing build-essential
sudo apt-get install build-essential
You may also be missing the ruby dev packages. Depending on what version of ruby you are using, this could be ruby-dev, ruby1.8-dev, ruby1.9-dev, or ruby1.9.1-dev. I had the same problem, and installed ruby1.9-dev and ruby1.9.1-dev and that solved my issue.
This is the site that led me to try this approach: http://ruby.about.com/od/faqs/qt/Extconf-Rb-1-In-Require-No-Such-File-To-Load-Mkmf-Loaderror.htm
I had the same issue, this is how resolved it [NOTE: I am using ubuntu, so at "g++" you have to use "gcc" if you are using any other OS]:
At first I cloned the repository to my local machine, and did some changes, have a look at the procedure below:
git clone git://github.com/eventmachine/eventmachine.git
cd eventmachine
gem install rake-compiler
rake-compiler cross-ruby VERSION=x.x.x-px
At the place of x.x.x-px you have to use your ruby version. see the list of available version of ruby which are compatible with rake-compiler here
Then go and put this: CONFIG['CXX'] = "g++" in /eventmachine/ext/extconf.rb and /eventmachine/ext/fastfilereader/extconf.rb files, right below require 'mkmf' line.
then do: rake gem and after that: rake gem:install
It worked for me, hope it works for you too.
I'm using Ubuntu 16.10 sudo apt-get install ruby-dev build-essential then sudo gem install eventmachine. That solved it for me.
from docs .
EventMachine may require the following
dependencies, depending on your
specific usage:
* OpenSSL
* libstd++ (some systems, such as debian, may require an explicit
install in order for the compiler to
support this)
Try to install it , if you are using debian
sudo apt-get install libstdc++6
Remember to run rvm requirements and follow the instructions in Additional Dependencies.
For all users running openSUSE you'll need to execute this command :
zypper in -t pattern devel_C_C++
For simplicity we can say that this is the equivalent of this command under Ubuntu :
sudo apt-get install build-essential

gem install typhoeus - failed to build gem extension

I'm receiving an error while trying to install a gem called typhoeus (this is used in following the book "Service Oriented Design with Rails") - I've tried a lot of things to try to get this fixed but I've hit a brick wall and am posting here in the hope someone can help.
Here is the output:
$ gem install typhoeus
Building native extensions. This could take a while...
ERROR: Error installing typhoeus:
ERROR: Failed to build gem native extension.
/Users/my.name/.rvm/rubies/ruby-1.8.7-p302/bin/ruby extconf.rb
checking for curl/curl.h in /opt/local/include,/opt/local/include/curl,/Users/my.name/.rvm/rubies/ruby-1.8.7-p302/include/curl,/Users/my.name/.rvm/rubies/ruby-1.8.7-p302/include,/usr/include/curl,/usr/local/include/curl... yes
checking for curl_easy_init() in -lcurl... yes
creating Makefile
make
gcc -I. -I. -I/Users/my.name/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/i686-darwin10.5.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -g -O2 -fno-common -pipe -fno-common -g -DXP_UNIX -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline -c native.c
In file included from /usr/local/include/curl/curl.h:35,
from ./native.h:5,
from native.c:1:
/usr/local/include/curl/curlrules.h:143: error: size of array ‘__curl_rule_01__’ is negative
make: *** [native.o] Error 1
I'm using rvm with ruby-1.8.7-p302 on OS X Snow Leopard with the latest XCode Tools.
From searching around I've tried to do various things, such as try installing the gem under the other ruby versions I have (ree-1.8.7-2010.02, ruby-1.9.2-head, and system ruby), to passing in architecture flags (x86_64 or i386) for the ARCHFLAGS argument, etc.
I'm new to ruby so any help would be greatly appreciated, thanks!
Not sure if this is the same on Mac but I was having the same problem with Ubuntu.
sudo apt-get install curl
sudo apt-get install libcurl3 libcurl3-dev
sudo gem install typhoeus
worked for me but only after installing the libcurl libraries
Thanks.
You only actually need libcurl3-dev:
sudo apt-get install libcurl3-dev
sudo gem install typhoeus
Should work just fine.
Not sure, but it seems that your system is not quite as the gem source expects.
Since its using curl and from this old problem, I would guess that your curl needs updating.
Is it the system installed curl, or are you using macports - perhaps its worth doing an update...
Alternatively can you try the install on a recent *nix system - that might work and so confirm its an environment issue.
From the github page, there are some notes on how to use it with an old curl...
Good luck, Chris
its libcurl problem, as typhoeus need the header and stuff to compile. and it is having problem.
libcurl-dev OR libcurl3-dev installed?

Resources