Project

General

Profile

Actions

Bug #2145

closed

MySQL gem fails to build

Added by THUFIR (THUFIR HAWAT) over 14 years ago. Updated almost 13 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
ruby -v:
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
[ruby-core:25798]

Description

=begin
Apparently this is a ruby problem, as the same thing seems to effect OS X:

root@ARRAKIS:~#
root@ARRAKIS:~#
root@ARRAKIS:~# aptitude install ruby -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
ruby ruby1.8{a}
0 packages upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
Need to get 24.0kB/44.8kB of archives. After unpacking 242kB will be used.
Writing extended state information... Done
Get:1 http://archive.ubuntu.com jaunty-updates/main ruby1.8 1.8.7.72-3ubuntu0.1 [24.0kB]
Fetched 24.0kB in 1s (15.7kB/s)
Selecting previously deselected package ruby1.8.
(Reading database ... 139812 files and directories currently installed.)
Unpacking ruby1.8 (from .../ruby1.8_1.8.7.72-3ubuntu0.1_i386.deb) ...
Selecting previously deselected package ruby.
Unpacking ruby (from .../apt/archives/ruby_4.2_all.deb) ...
Processing triggers for man-db ...
Setting up ruby1.8 (1.8.7.72-3ubuntu0.1) ...
Setting up ruby (4.2) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

root@ARRAKIS:~# gem install mysql
The program 'gem' can be found in the following packages:

  • rubygems1.8
  • rubygems1.9
    Try: apt-get install
    -su: gem: command not found
    root@ARRAKIS:~#
    root@ARRAKIS:~#
    root@ARRAKIS:~# aptitude install rubygems
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading extended state information
    Initializing package states... Done
    The following NEW packages will be installed:
    irb1.8{a} libreadline-ruby1.8{a} rdoc1.8{a} rubygems rubygems1.8{a}
    0 packages upgraded, 5 newly installed, 0 to remove and 3 not upgraded.
    Need to get 386kB of archives. After unpacking 2105kB will be used.
    Do you want to continue? [Y/n/?] y
    Writing extended state information... Done
    Get:1 http://archive.ubuntu.com jaunty-updates/universe libreadline-ruby1.8 1.8.7.72-3ubuntu0.1 [10.4kB]
    Get:2 http://archive.ubuntu.com jaunty-updates/universe irb1.8 1.8.7.72-3ubuntu0.1 [79.1kB]
    Get:3 http://archive.ubuntu.com jaunty-updates/universe rdoc1.8 1.8.7.72-3ubuntu0.1 [125kB]
    Get:4 http://archive.ubuntu.com jaunty/universe rubygems1.8 1.3.1-1 [169kB]
    Get:5 http://archive.ubuntu.com jaunty/universe rubygems 1.3.1-1 [2712B]
    Fetched 386kB in 13s (29.2kB/s)
    Selecting previously deselected package libreadline-ruby1.8.
    (Reading database ... 139849 files and directories currently installed.)
    Unpacking libreadline-ruby1.8 (from .../libreadline-ruby1.8_1.8.7.72-3ubuntu0.1_i386.deb) ...
    Selecting previously deselected package irb1.8.
    Unpacking irb1.8 (from .../irb1.8_1.8.7.72-3ubuntu0.1_all.deb) ...
    Selecting previously deselected package rdoc1.8.
    Unpacking rdoc1.8 (from .../rdoc1.8_1.8.7.72-3ubuntu0.1_all.deb) ...
    Selecting previously deselected package rubygems1.8.
    Unpacking rubygems1.8 (from .../rubygems1.8_1.3.1-1_all.deb) ...
    Selecting previously deselected package rubygems.
    Unpacking rubygems (from .../rubygems_1.3.1-1_all.deb) ...
    Processing triggers for man-db ...
    Setting up libreadline-ruby1.8 (1.8.7.72-3ubuntu0.1) ...
    Setting up irb1.8 (1.8.7.72-3ubuntu0.1) ...

Setting up rdoc1.8 (1.8.7.72-3ubuntu0.1) ...
Setting up rubygems1.8 (1.3.1-1) ...

Setting up rubygems (1.3.1-1) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

root@ARRAKIS:~#
root@ARRAKIS:~#
root@ARRAKIS:~# gem install mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb install mysql
extconf.rb:10:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:10

Gem files will remain installed in /var/lib/gems/1.8/gems/mysql-2.8.1 for inspection.
Results logged to /var/lib/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
Updating ri class cache with 1156 classes...
root@ARRAKIS:~#
root@ARRAKIS:~#
root@ARRAKIS:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"
root@ARRAKIS:~# root@ARRAKIS:~#
root@ARRAKIS:~# date
Sat Sep 26 09:34:51 PDT 2009
root@ARRAKIS:~#
root@ARRAKIS:~# ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
root@ARRAKIS:~#
=end

Actions #1

Updated by rogerdpack (Roger Pack) over 14 years ago

=begin
have you tried googling "no such file to load -- mkmf" by chance?
-r
=end

Actions #2

Updated by naruse (Yui NARUSE) over 14 years ago

  • Status changed from Open to Third Party's Issue

=begin
Why do you use "aptitude install libmysql-ruby".
Anyway this is not Ruby's issue.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0