I'm trying to install passenger:
gem1.8 install passenger
But i'm getting the error:
Building native extensions. This could take a while... ERROR: Error
installing passenger: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb extconf.rb:8:in `require': no such
file to load -- mkmf (LoadError) from extconf.rb:8
Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7 for inspection. Results
logged to
/usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7/ext/fastthread/gem_make.out
So Now i've been told to install ruby1.8-dev but i have
a dependency:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ruby1.8-dev : Depends: libc6-dev but it is not going to be installed
E: Broken packages
So i tried to install them both and got:
The following packages have unmet dependencies:
libc6-dev : Depends: libc6 (= 2.7-18lenny7) but 2.11.2-10 is to be installed
So finally i tried to install issuing the command:
apt-get install ruby1.8-dev libc6-dev libc6
But i get the same error. I also tried with "apt-get -f"
What do i need to do?
I think you might be missing this:
sudo apt-get install build-essential
Related
My apt-get is totally broken and can't install anything. The output of 'apt-get install -f" is as follows:
# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
gnome-icon-theme : Depends: gtk-update-icon-cache
python3-cairo : Depends: python3 (>= 3.6~) but 3.4.3-1 is installed
python3-gdbm : Depends: python3 (>= 3.6) but 3.4.3-1 is installed
python3-reportlab-accel : Depends: python3 (>= 3.6~) but 3.4.3-1 is installed
rhythmbox : Depends: rhythmbox-data (= 3.1-1ubuntu3) but 3.4.1-2ubuntu5 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
The output of 'sudo apt install python3' is in the picture:https://imgur.com/a/IbGK0
I have Googled any possible questions and tried any possible solutions but NO ONE worked for it.
Go to /var/log/dist-upgrade/apt.log and identify the packages that are broken. "apt-get remove" the packages, do release upgrade and then you should be able to reinstall them.
You can find more information here: https://askubuntu.com/questions/124845/eerror-pkgproblemresolverresolve-generated-breaks-this-may-be-caused-by-hel
This command resolved my error
sudo apt -f install
In my case I was behind a proxy, so I needed to run the following command:
sudo nano /etc/apt/apt.conf
And added the following lines:
Acquire::http::proxy "http://<user>:<password>#<proxy_host>:<proxy_port>/";
Acquire::https::proxy "https://<user>:<password>#<proxy_host>:<proxy_port>/";
Acquire::ftp::proxy "ftp://<user>:<password>#<proxy_host>:<proxy_port>/";
I am getting the following error while installing the fresh ruby 2.0.0-p648 through rvm
$ rvm install 2.0.0
Searching for binary rubies, this might take some time.
Found remote file https://rubies.travis-ci.org/ubuntu/14.04/x86_64/ruby-2.0.0-p648.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system..bob password required for 'apt-get --quiet --yes update':
...........
Installing required packages: libgmp-dev....
Error running 'requirements_debian_libs_install libgmp-dev',
showing last 15 lines of /home/rank/.rvm/log/1467783851_ruby-2.0.0-p648/package_install_libgmp-dev.log
++ sudo -p '%p password required for '\''apt-get --no-install-recommends --yes install libgmp-dev'\'': ' apt-get --no-install-recommends --yes install libgmp-dev
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libgmp-dev : Depends: libgmp10 (= 2:5.0.2+dfsg-2ubuntu1) but 2:5.1.3+dfsg-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
++ return 100
++ return 100
Requirements installation failed with status: 100.
Please help
I'm running Vagrant 1.8.1 on OSX 10.11.3 and I'm trying to install a plugin. While attempting to install I get the following the error:
vagrant plugin install vagrant-libvirt
............
An error occurred while installing ruby-libvirt (0.6.0), and Bundler cannot continue.
Make sure that `gem install ruby-libvirt -v '0.6.0'` succeeds before bundling.
.........
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
ruby-livirt 0.6.0 has already been installed:
# gem list | grep ruby-libvirt
# ruby-libvirt (0.6.0)
Can I bypass this error since the gem is already installed?
I had the same error while installing vagrant plugin install vagrant-libvirt it turned out that I was missing some libraries.
After installing below libraries on Ubuntu 16.04 I was able successfully install vagrant-libvirt plugin with vagrant plugin install command.
bridge-utils
build-dep
dnsmasq-base
ebtables
libguestfs-tools
libvirt-bin
libvirt-dev
libxml2-dev
libxslt-dev
qemu
qemu-kvm
ruby-dev
ruby-libvirt
virt-top
virtinst zlib1g-dev
Depends on your Linux distribution you might look at this link to find matching libraries.
Like many others I'm having trouble installing rmagick on Ubuntu when running bundle install.
I get this error on the bundle install command:
Installing rmagick (2.13.1)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.8.7-p371/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.13.1. Can't find Magick-config in /usr/local/rvm/gems/ruby-1.8.7-p371/bin:/usr/local/rvm/gems/ruby-1.8.7-p371#global/bin:/usr/local/rvm/rubies/ruby-1.8.7-p371/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
*** 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.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/rvm/rubies/ruby-1.8.7-p371/bin/ruby
Gem files will remain installed in /home/selfsale/.bundler/tmp/2908/gems/rmagick-2.13.1 for inspection.
Results logged to /home/selfsale/.bundler/tmp/2908/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
An error occurred while installing rmagick (2.13.1), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.13.1'` succeeds before bundling.
I then did some searching and found some suggestions for adding the missing libs:
sudo apt-get install libmagick9-dev:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libmagick9-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
graphicsmagick-libmagick-dev-compat
E: Package 'libmagick9-dev' has no installation candidate
sudo apt-get install graphicsmagick-libmagick-dev-compat:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
graphicsmagick-libmagick-dev-compat : Depends: libgraphicsmagick1-dev but it is not going to be installed
Depends: libgraphicsmagick++1-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
sudo apt-get install libmagickwand-dev:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libmagickwand-dev : Depends: libmagickcore-dev (= 8:6.6.9.7-5ubuntu3.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
sudo apt-get install libmagickcore-dev:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libmagickcore-dev : Depends: libbz2-dev but it is not going to be installed
Depends: libfreetype6-dev but it is not going to be installed
Depends: libpng-dev
Depends: librsvg2-dev but it is not going to be installed
Depends: libwmf-dev but it is not going to be installed
Depends: libx11-dev but it is not going to be installed
Depends: libxext-dev but it is not going to be installed
Depends: libxt-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
sudo apt-get install libmagick++-dev:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libmagick++-dev : Depends: libmagickcore-dev (= 8:6.6.9.7-5ubuntu3.2) but it is not going to be installed
Depends: libmagickwand-dev (= 8:6.6.9.7-5ubuntu3.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
It seems that any attempt to install the correct packages comes up with this problem.
I've just seen a post about installing imagemagick from source so I'm going to try that, but if anyone has any better ideas I'd love to hear them.
Thanks
I found the solution:
sudo apt-get install aptitude
Then fire:
sudo aptitude install graphicsmagick-libmagick-dev-compat
When asked:
The following actions will resolve these dependencies:
Keep the following packages at their current version
1) graphicsmagick-libmagick-dev-compat [Not Installed]
2) libexif-dev [Not Installed]
3) libgraphicsmagick++1-dev [Not Installed]
4) libgraphicsmagick1-dev [Not Installed]
Answer: "n"
Accept this solution? [Y/n/q/?] n
In second question:
The following actions will resolve these dependencies:
Downgrade the following packages:
1) libexif12 [0.6.20-2ubuntu0.1 (now) -> 0.6.20-2 (precise)]
Answer: "Y" or hit ENTER
Accept this solution? [Y/n/q/?]
Wait until task end ;)
I just tried on my laptop (Ubuntu 13.04).
gem install rmagick
failed too. Then I did
sudo apt-get install libmagick++-dev
and rmagick installed without problems.
This solution is after all more important than shown before, cuz it removes:
graphicsmagick-libmagick-dev-compat
but solves problem with (in 'bundle install'):
checking for wand/MagickWand.h... no
as show in my second post type in prompt:
sudo aptitude install libmagickwand-dev
At:
The following actions will resolve these dependencies:
Keep the following packages at their current version
1) libatk1.0-dev [Not Installed]
2) libcairo2-dev [Not Installed]
3) libexpat1-dev [Not Installed]
4) libgdk-pixbuf2.0-dev [Not Installed]
5) libglib2.0-dev [Not Installed]
6) libgraphviz-dev [Not Installed]
7) libgtk2.0-dev [Not Installed]
8) libmagickcore-dev [Not Installed]
9) libmagickwand-dev [Not Installed]
10) libpango1.0-dev [Not Installed]
11) librsvg2-dev [Not Installed]
Answer:
Accept this solution? [Y/n/q/?] n
In secound:
The following actions will resolve these dependencies:
Remove the following packages:
1 ) graphicsmagick-libmagick-dev-compat
Install the following packages:
2)libcairo-script-interpreter2 [1.10.2-6.1ubuntu2 (precise)]
[..]
Answer: "Y"
Accept this solution? [Y/n/q/?]
After task is done, U can easily run 'bundle install' in your project directory.
Try installing imagemagick and libmagickwand-dev together:
sudo apt-get install imagemagick libmagickwand-dev
This allows apt to resolve the dependencies properly. (tested on Ubuntu 12.04)
sudo apt-get install libmagick++-dev
rmagick installed success
I am building a facebook app using heroku. I used:
gem install taps
It gave error:
extconf.rb:36:in `require': no such file to load -- mkmf (LoadError) from extconf.rb:36
I googled it and found the stackoverflow link
I then used:
sudo aptitude install ruby1.9.1-dev build-essential
then I again tried:
gem install taps
It gave error:
checking for sqlite3.h... no
sqlite3.h is missing
I installed sqlite3 using sudo apt-get install sqlite3 but when I tried again
(gem install taps) it still gives the error:
checking for sqlite3.h... no
sqlite3.h is missing
Sounds like you need the dev package for sqlite3:
sudo apt-get install libsqlite3-dev