[Bug 437280] Re: failed to build mysql gem
Failing to find mkmf is because you've been missing ruby-dev. Closing this bug. Thank you for reporting, though! ** Changed in: libgems-ruby (Ubuntu) Status: New = Invalid -- failed to build mysql gem https://bugs.launchpad.net/bugs/437280 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 437280] Re: failed to build mysql gem
Oh, pardon about that. thanks for the info :) On Mon, May 10, 2010 at 4:16 AM, Simon Huerlimann si...@huerlisi.ch wrote: Failing to find mkmf is because you've been missing ruby-dev. Closing this bug. Thank you for reporting, though! ** Changed in: libgems-ruby (Ubuntu) Status: New = Invalid -- failed to build mysql gem https://bugs.launchpad.net/bugs/437280 You received this bug notification because you are a direct subscriber of the bug. Status in “libgems-ruby” package in Ubuntu: Invalid Bug description: Binary package hint: rubygems I'm not sure why this gem fails to install, perhaps there's something which Ubuntu has moved around which causes the gem to fail to build? r...@arrakis:~# r...@arrakis:~# r...@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 r...@arrakis:~# gem install mysql The program 'gem' can be found in the following packages: * rubygems1.8 * rubygems1.9 Try: apt-get install selected package -su: gem: command not found r...@arrakis:~# r...@arrakis:~# r...@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 r...@arrakis:~# r...@arrakis:~# r...@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... r...@arrakis:~# r...@arrakis:~#
[Bug 437280] Re: failed to build mysql gem
Hmm, I'm not sure. I did get it working, but can't recall exactly. However, it does look to be installed. That being said, I can't confirm that was the solution. thu...@arrakis:~$ thu...@arrakis:~$ aptitude show libmysqlclient15-dev Package: libmysqlclient15-dev State: installed Automatically installed: no Version: 5.1.30really5.0.83-0ubuntu3 Priority: optional Section: universe/libdevel Maintainer: Ubuntu Developers ubuntu-devel-disc...@lists.ubuntu.com Uncompressed Size: 21.0M Depends: libmysqlclient15off (= 5.1.30really5.0.83-0ubuntu3), zlib1g-dev, libc6 (= 2.4) Suggests: mysql-doc-5.0 Conflicts: libmysqlclient10-dev, libmysqlclient12-dev, libmysqlclient14-dev Provides: libmysqlclient-dev Description: MySQL database development files MySQL is a fast, stable and true multi-user, multi-threaded SQL database server. SQL (Structured Query Language) is the most popular database query language in the world. The main goals of MySQL are speed, robustness and ease of use. This package includes development libraries and header files. Homepage: http://dev.mysql.com/ thu...@arrakis:~$ -- failed to build mysql gem https://bugs.launchpad.net/bugs/437280 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 437280] Re: failed to build mysql gem
Do you have the build-essential package installed? In addition you need the libmysqlclient15-dev package for the gem to be able to build. -- failed to build mysql gem https://bugs.launchpad.net/bugs/437280 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs