引用
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
分享到:
相关推荐
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, ...
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 ...
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 ...
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_...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
* 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 ...
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,...
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 ...
MySql . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 ...