Try: gem pristine bootsnap --version 1.3.1 Ignoring bootsnap-1.3.1 because its extensions are not built. Try: gem pristine bootsnap --version 1.3.1 - linux

rails generate acts_as_votable:migration
Ignoring bootsnap-1.3.1 because its extensions are not built. Try: gem pristine bootsnap --version 1.3.1
Ignoring bootsnap-1.3.1 because its extensions are not built. Try: gem pristine bootsnap --version 1.3.1
/home/ayesha/.rvm/gems/ruby-2.2.1/gems/bundler-1.16.3/lib/bundler/definition.rb:491:in validate_ruby!': Your Ruby version is 2.2.1, but your Gemfile specified 2.5.1 (Bundler::RubyVersionMismatch)
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/bundler-1.16.3/lib/bundler/definition.rb:466:invalidate_runtime!'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/bundler-1.16.3/lib/bundler.rb:101:in setup'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/bundler-1.16.3/lib/bundler/setup.rb:20:in'
from /home/ayesha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in require'
from /home/ayesha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/spring-2.0.2/lib/spring/commands.rb:33:in <module:Spring>'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/spring-2.0.2/lib/spring/commands.rb:4:in'
from /home/ayesha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in require'
from /home/ayesha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/spring-2.0.2/lib/spring/server.rb:9:in <top (required)>'
from /home/ayesha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /home/ayesha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in require'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/spring-2.0.2/lib/spring/client/server.rb:9:incall'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/spring-2.0.2/lib/spring/client/command.rb:7:in call'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/spring-2.0.2/lib/spring/client.rb:30:inrun'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/spring-2.0.2/bin/spring:49:in `'

The error message is telling you what to do, though perhaps not very directly.
Try running this command:
gem pristine bootsnap --version 1.3.1
That will try to reinstall the bootsnap gem from scratch.

Related

pip failed to install dbus-python

I planed to install dbus-python:
$ pip --version; python --version
pip 19.0.3 from /home/me/anaconda3/lib/python3.7/site-packages/pip (python 3.7)
Python 3.7.3
The platform:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
When I run pip install dbus-python, it reports these errors:
checking for DBUS... no
configure: error: in `/tmp/pip-install-hr9djbwg/dbus-python/build/temp.linux-x86_64-3.7':
configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables DBUS_CFLAGS
and DBUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Check
$ echo $PKG_CONFIG
#return nothing
I installed pkg-config just now:
$ pkg-config --version
0.29.1
It still reports these errors:
checking for DBUS... no
configure: error: Package requirements (dbus-1 >= 1.8) were not met:
No package 'dbus-1' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables DBUS_CFLAGS
and DBUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
However, the dbus-1 package cannot be installed:
$ pip install dbus-1
Collecting dbus-1
Could not find a version that satisfies the requirement dbus-1 (from versions: )
No matching distribution found for dbus-1
First I looked up for package
sudo apt-cache search dbus-1
Then I installed required packages with command:
sudo apt install libdbus-1-3 libdbus-1-dev
Encountered the same problem. dbus-python seems to be a deprecated module. dbus-next seems to its replacement.
pip install dbus-next

Jekyll installation, wrong number of arguments

I am running Fedora 28. Having trouble installing Jekyll. I have all the dependencies mentioned on their installation page.
ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
gem -v
2.5.2
bundle -v
Bundler version 1.16.1
When I try to install Jekyll, I am getting this -
gem install jekyll
ERROR: While executing gem ... (ArgumentError)
wrong number of arguments (given 1, expected 0)
Running as root doesn't help either. When I run backtrace,
gem install jekyll --backtrace
ERROR: While executing gem ... (ArgumentError)
wrong number of arguments (given 1, expected 0)
/usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:47:in `require'
/usr/local/share/ruby/site_ruby/rubygems/installer.rb:162:in `initialize'
/usr/local/share/ruby/site_ruby/rubygems/installer.rb:104:in `new'
/usr/local/share/ruby/site_ruby/rubygems/installer.rb:104:in `at'
/usr/local/share/ruby/site_ruby/rubygems/resolver/specification.rb:93:in `install'
/usr/local/share/ruby/site_ruby/rubygems/request_set.rb:166:in `block in install'
/usr/local/share/ruby/site_ruby/rubygems/request_set.rb:156:in `each'
/usr/local/share/ruby/site_ruby/rubygems/request_set.rb:156:in `install'
/usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:250:in `install_gem'
/usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:300:in `block in install_gems'
/usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:296:in `each'
/usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:296:in `install_gems'
/usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:203:in `execute'
/usr/local/share/ruby/site_ruby/rubygems/command.rb:308:in `invoke_with_build_args'
/usr/local/share/ruby/site_ruby/rubygems/command_manager.rb:169:in `process_args'
/usr/local/share/ruby/site_ruby/rubygems/command_manager.rb:139:in `run'
/usr/local/share/ruby/site_ruby/rubygems/gem_runner.rb:55:in `run'
/usr/bin/gem:21:in `<main>'
I guess the ruby version was the problem. Once I installed ruby 2.4 using https://rvm.io/ installation was successful

trouble upgrading cabal-install

I'm having trouble upgrading cabal to version 1.17.0. My current version of cabal is:
edechter#helmholtz cabal-install (master) $ cabal --version
cabal-install version 1.16.0.2
using version 1.16.0.3 of the Cabal library
Here's my attempt:
edechter#helmholtz cabal-install (master) $ cabal install cabal-install-1.17.0
Resolving dependencies...
cabal: Could not resolve dependencies:
rejecting: cabal-install-1.16.0.2, 1.16.0.1, 1.16.0, 0.14.0, 0.10.2, 0.10.0,
0.8.2, 0.8.0, 0.6.4, 0.6.2, 0.6.0, 0.5.2, 0.5.1, 0.5.0, 0.4.0 (global
constraint requires ==1.17.0)
I followed the instructions here: http://www.haskell.org/cabal/FAQ.html#dependencies-conflict
But I don't see anything that conflicts.
Any ideas?
1.16.0.2 is the latest version currently available on Hackage. If you want to try a pre-release version, I suggest using cabal-dev:
$ git clone git://github.com/haskell/cabal.git
$ cd cabal/cabal-install
$ cabal-dev add-source ../Cabal
$ cabal-dev install
The cabal executable will be installed under cabal-dev/bin.

Gem Install Error

When trying to run gem install rake bundler I get the following error
rvmsudo gem install rake bundler
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
What might be causing this problem and how do I fix it?
OS: Ubuntu 10.10 32 bit
Sounds like your missing the zlib package.
try:
rvm pkg install zlib
then uninstall and reinstall your gem version with rvm

Jruby: unable to install gems, failing with undefined class/module YAML::Syck::DefaultKey

The console output pretty much speaks for itself:
$ java -jar jruby-complete-1.6.4.jar -S gem install nokogiri --no-rdoc --no-ri
Fetching: nokogiri-1.5.0-java.gem (100%)
Successfully installed nokogiri-1.5.0-java
1 gem installed
11:17:04|dkowis#racktop jruby
$ java -jar jruby-complete-1.6.4.jar -S gem install cucumber --no-rdoc --no-ri
ERROR: While executing gem ... (ArgumentError)
undefined class/module YAML::Syck::DefaultKey
11:18:24|dkowis#racktop jruby
$ java -jar jruby-complete-1.6.4.jar -S gem install cuke4duke --version=0.4.4 --no-rdoc --no-ri
ERROR: While executing gem ... (ArgumentError)
undefined class/module YAML::Syck::DefaultKey
There's a couple gems I can install, but the ones I need, I cannot. Is it a problem with the gem itself? Is it a problem with rubygems? I'm not able to puzzle this one out.
This apparently is a known issue with Rubygems reported here on the JRuby Forum.
There is a pull request to fix this Rubygems error, but you could try build the gems you want locally and correct the dependency statements in the gemspec file yourself. I had ran into the same problem with the i18n-js gem.
Hope this helps.

Resources