`
xxj
  • 浏览: 420589 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

do_mysql problem

阅读更多
引用
martin@martin-laptop:~/$ sudo gem install data_objects do_sqlite3 do_mysql dm-core dm-more
.....
.....
Building native extensions.  This could take a while...
ERROR:  Error installing do_mysql:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb install data_objects do_sqlite3 do_mysql dm-core dm-more
checking for mysql_query() in -lmysqlclient... no
*** 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/bin/ruby1.8
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/do_mysql-0.9.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/do_mysql-0.9.1/ext/gem_make.out



http://groups.google.com/group/datamapper/browse_thread/thread/f2bd7ba7365e95bf/0e71c069e6d52245?lnk=raot

引用
This is consecuence of lacking the development libraries of mysql
which (off course) include mysql.h

Once you install libmysqlclient15-dev using apt-get, aptitude or
synaptic, you should get the missing file:

/usr/include/mysql/mysql.h

And be able to install withour problem:


sudo apt-get install libmysqlclient15-dev


Then install gems again.
sudo gem install do_mysql
分享到:
评论

相关推荐

    MySQL Troubleshooting 原版PDF by Smirnova

    no idea what to do next. Well-verified methods exist to find the cause of the problem and fix it effectively, but they are hard to cull from the numerous information sources. Hundreds of great books, ...

    mysql_cookbook

    the index looking for a recipe that shows how to do what you want. Ideally, the recipe will be just what you had in mind. Failing that, you should be able to find a recipe for a similar problem that ...

    BDB Professional Edition v2.7

    It supports these database: Oracle, MS SQLServer, Access, MySQL, SQLAnyWhere and Sybase. You can simplify the process of your software development through BDB. 1.The database design. Build the ...

    matlab导入excel代码-utl_excel_import_sas_functions_fail_on_cells_with_mutip

    mysql sas社区stackoverflow statistics人工智慧AI Python R Java Javascript WPS Matlab SPSS Scala Perl CC#Excel MS Access JSON图形映射NLP自然语言处理机器学习igraph DO stackoverflow SAS社区。 Excel_...

    PHP and MySQL Web Devepopment 4th Edition.pdf

    If you do not specify a home server, then DCDIAG will just pick one automatically. There are a couple of instances in which a specified home server will be ignored. The DCPROMO and the Register In ...

    HBase:权威指南(英文版)

    I have decent skills in managing a MySQL database system and was using it to store data that would ultimately be served to our website users. This database was running on a single server, with ...

    simple-tags

    2. Do you have a not yet tagged blog ? Edit mass tags options is perfect for you : tag 20, 30 or 50 articles with autocompletion in one step ! 3. Autotagging your content ! 4. Add tags easily with ...

    Securing PHP Web Applications.pdf

    The Problem: Users Who Give You More Than You Asked For 54 Spammers 55 Injection Attacks 55 Assumptions: You Know What Your Data Looks Like 55 Database Constraints 56 Logical Constraints 56 The ...

    Beginning Python (2005).pdf

    Try It Out: Data Storage in MySQL 439 Try It Out: Storing and Retrieving Documents 441 Try It Out: A Document Retention Framework 446 The python-ldap Module 448 Try It Out: Using Basic OpenLDAP ...

    suipack trial

    As we do not do much in the UI world. When I have the product done, and the new web site up and running, I would like to be a show-case for you. You made the hardest part of my development short, ...

    Delphi7.1 Update

    * Setting MTSDataModule.AutoComplete to False in the IDE is overridden and set back to True at run time (Quality Central 4716).* Calls to ApplyUpdates(-1) on a TMTSDataModule do not work properly ...

    端口查看工具

    o Fixed the problem with sending the data to stdout (when the filename is empty string). * Version 1.93: o Updated the internal country names (added more 14 countries) that are used for ...

    unichefe-sistema-de-controle-para-cantinas:UNICHEFE-墨西哥的西斯蒂玛制酒厂,西班牙的西西马奶酪厂

    Problem a Aplicacao deste软件 Tendo em vista a realidade da cantina da Unimonte ,tivmos a ideia de miniuir o Impacto daProblemáticaualcom um com um qu que possibilita do pedido antecipadamente,...

    UE(官方下载)

    Is there an easier way to do this?" The answer is: yes! Configure FTP Set up and configure multiple FTP accounts TaskMatch Environments How to use TaskMatch Environments in UltraEdit and UEStudio ...

    Laraboot: Laravel 5 For Beginners

    MySql . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 ...

Global site tag (gtag.js) - Google Analytics