Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occurs when I try to install it on Windows #173

Open
micmmakarov opened this issue May 10, 2012 · 1 comment
Open

Error occurs when I try to install it on Windows #173

micmmakarov opened this issue May 10, 2012 · 1 comment

Comments

@micmmakarov
Copy link

I'm using Windows (Rails Installer) and
I cloned lokka, and it crashed during bundle install.

C:\Users\John\Rails\lokka\lokka>bundle install --without=production:test
Fetching source index for http://rubygems.org/
Using rake (0.9.2)
Using RedCloth (4.2.9)
Using abstract (1.0.0)
Using multi_json (1.0.4)
Using activesupport (3.1.1)
Using addressable (2.2.7)
Using backports (2.3.0)
Using bcrypt-ruby (3.0.1)
Using bond (0.4.1)
Using builder (3.0.0)
Using bundler (1.0.21)
Using coderay (1.0.5)
Using data_objects (0.10.6) from git://github.com/datamapper/do.git (at d7cb262)

Using dm-core (1.2.0)
Using dm-aggregates (1.2.0)
Using dm-do-adapter (1.2.0)
Using dm-is-searchable (1.2.0)
Using dm-is-tree (1.2.0)
Using dm-migrations (1.2.0)
Using do_mysql (0.10.6) from git://github.com/datamapper/do.git (at d7cb262) wit
h native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
.

    C:/RailsInstaller/Ruby1.9.2/bin/ruby.exe extconf.rb

checking for my_global.h... C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/mkmf.rb:3
68:in try_do': The complier failed to generate an executable file. (RuntimeErro r) You have to install development tools first. from C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/mkmf.rb:452:intry_cpp'

    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/mkmf.rb:834:in `block in

have_header'
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/mkmf.rb:693:in block in checking_for' from C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/mkmf.rb:280:inblock (2
levels) in postpone'
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/mkmf.rb:254:in open' from C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/mkmf.rb:280:inblock in
postpone'
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/mkmf.rb:254:in open' from C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/mkmf.rb:276:inpostpone
'
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/mkmf.rb:692:in checking _for' from C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/mkmf.rb:833:inhave_hea
der'
from extconf.rb:38:in `

'

Gem files will remain installed in C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9
.1/bundler/gems/do-d7cb262d89a1/do_mysql for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/bundler/gems/d
o-d7cb262d89a1/do_mysql/ext/do_mysql/gem_make.out
An error occured while installing do_mysql (0.10.6), and Bundler cannot continue
.
Make sure that gem install do_mysql -v '0.10.6' succeeds before bundling.

C:\Users\John\Rails\lokka\lokka>bundle install --without production
Fetching git://github.com/yayugu/dm-pagination.git
remote: Counting objects: 935, done.
remote: Compressing objects: 100% (443/443), done.
remote: Total 935 (delta 504), reused 874 (delta 468)Receiving objects: 93% (87
Receiving objects: 95% (889/935), 76.00 KiB | 25 KiB/s
Receiving objects: 100% (935/935), 100.65 KiB | 25 KiB/s, done.
Resolving deltas: 100% (504/504), done.
Fetching git://github.com/datamapper/do.git
remote: Counting objects: 17354, done.
remote: Compressing objects: 100% (4784/4784), done.
remote: Total 17354 (delta 11188), reused 17261 (delta 11116)
Receiving objects: 100% (17354/17354), 12.44 MiB | 71 KiB/s, done.
Resolving deltas: 100% (11188/11188), done.
Fetching source index for http://rubygems.org/
Installing rake (0.9.2)
Installing RedCloth (4.2.9)
Installing abstract (1.0.0) WARNING: abstract-1.0.0 has an invalid nil value for
@cert_chain

Installing multi_json (1.0.4)
Using activesupport (3.1.1)
Using addressable (2.2.7)
Installing backports (2.3.0)
Using bcrypt-ruby (3.0.1)
Installing bond (0.4.1) with native extensions
Using builder (3.0.0)
Using bundler (1.0.21)
Using coderay (1.0.5)
Using data_objects (0.10.6) from git://github.com/datamapper/do.git (at d7cb262)

Installing database_cleaner (0.7.1)
Installing diff-lcs (1.1.3)
Installing dm-core (1.2.0)
Installing dm-aggregates (1.2.0)
Installing dm-do-adapter (1.2.0)
Installing dm-is-searchable (1.2.0)
Installing dm-is-tree (1.2.0)
Installing dm-migrations (1.2.0)
Using do_mysql (0.10.6) from git://github.com/datamapper/do.git (at d7cb262) wit
h native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
.

    C:/RailsInstaller/Ruby1.9.2/bin/ruby.exe extconf.rb

checking for my_global.h... no
checking for mysql.h... no
checking for main() in -llibmysql... no
checking for mysql_query() in mysql.h... no
checking for mysql_ssl_set() in mysql.h... no
checking for localtime_r()... no
checking for gmtime_r()... no
checking for mysql.h... no
checking for MYSQL_TYPE_STRING in mysql.h... no
checking for MYSQL_TYPE_BIT in mysql.h... no
checking for MYSQL_TYPE_NEWDECIMAL in mysql.h... no
checking for mysql_query() in mysql.h... no
checking for mysql_ssl_set() in mysql.h... no
checking for mysql_sqlstate() in mysql.h... no
checking for mysql_get_ssl_cipher() in mysql.h... no
checking for mysql_set_character_set() in mysql.h... no
checking for mysql_get_server_version() in mysql.h... no
checking for MYSQL_FIELD.charsetnr in mysql.h... no
creating Makefile

make
C:/RailsInstaller/Ruby1.9.2/bin/ruby -e "puts 'EXPORTS', 'Init_do_mysql'" > do_
mysql-i386-mingw32.def
gcc -I. -IC:/RailsInstaller/Ruby1.9.2/include/ruby-1.9.1/i386-mingw32 -I/C/Rails
Installer/Ruby1.9.2/include/ruby-1.9.1/ruby/backward -I/C/RailsInstaller/Ruby1.9
.2/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parenthese
s -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long
-Wall -o do_common.o -c do_common.c
do_common.c:1:1: error: expected identifier or '(' before '.' token
make: *** [do_common.o] Error 1

Gem files will remain installed in C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9
.1/bundler/gems/do-d7cb262d89a1/do_mysql for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/bundler/gems/d
o-d7cb262d89a1/do_mysql/ext/do_mysql/gem_make.out
An error occured while installing do_mysql (0.10.6), and Bundler cannot continue
.
Make sure that gem install do_mysql -v '0.10.6' succeeds before bundling.

@komagata
Copy link
Member

Thanks for trying.
I'll try to bundle too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants