Tag: gems
jobs.rubynow.com: Ruby on Rails Developer opportunity not to miss!!
by on Jan.12, 2011, under Ruby and Rails
My client is an emerging web application software vendor with offices in three locations across the globe. they currently have a strong team of RoR Developers and are seeking further Ruby enthusiasts to help continue evolve their flagship product. they use gems such as acts_as_paranoid, vestal_versions, declarative_auth, searchlogic, geokit, AWS/S3, paperclip, rmagick and cucumber, rspec, webrat, and metric_fu (and friends) for features/testing. their core product uses a PostGRES database, however experience of other databases such as MySQL is sufficient. their test boxes are on the Linux platform. they also use technologies such as HAML, SASS and JSON. their project tools include GitHub, Pivotal Tracker and Basecamp and they are starting to look at Carbon5’s story mapper; lighthouse/zendesk for support; hoptoad, newrelic and pingdom for monitoring / performance. Independent learning and problem solving skills are a must and you should be interested to discuss and self-critique their ideas, also challenge others on the team. they are a very friendly team who like to talk about the pros/cons of a solution. this is a fantastic opportunity for a passionate Ruby on Rails Developer to get involved with an exciting company and get stuck in with loads of challenging projects. please note for candidates who would be interested in relocating to France, our client is happy to help make the move as easy and smooth as possible.
jobs.rubynow.com: Ruby on Rails Developer opportunity not to miss!!
[Rails] sqlite3 Failed to build gem native extension
by on Jan.04, 2011, under Ruby and Rails
hello all,
this is driving me crazy, and i have tried everything and looked
everywhere and i cannot resolve this problem.
when i do bundle install in a rails app, i get an error “Failed to
build gem native extension” during sqlite3. i have included the entire
error below.
i have rails 3.0.3, ruby 1.8.7, and sqlite3 installed (although i cant
see it in gem list). i have OS X 10.5.8, XCode 3.1.4. this is running
on a PPC machine.
the weird thing is, this just started out of nowhere. i have been
learning rails for a few months, and this error just started occurring
without me upgrading or installing anywhere. in fact, this runs on a
PMG5 which is only used for this.
just a few things i have tried from searching the web, the forums, and
the mailing groups are upgrading everything (rails, gems, ruby, xcode,
sqlite), compiling and installing sqlite, trying to use mysql instead,
taking all instances of sqlite out of my gemfile, i think there were a
few more…
so here are the errors, and below that is the relevant mkmf.log. thank
you to anyone in advance who has a suggestion!
Installing sqlite3-ruby (1.3.2) with native extensions /usr/local/lib/
ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions’:
ERROR: Failed to build gem native extension.
(Gem::Installer::ExtensionBuildError)
/usr/local/bin/ruby extconf.rb
checking for sqlite3.h… yes
checking for sqlite3_libversion_number() in -lsqlite3… yes
checking for rb_proc_arity()… no
checking for sqlite3_initialize()… no
sqlite3-ruby only supports sqlite3 versions 3.6.16+, please upgrade!
*** 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/local/bin/ruby
–with-sqlite3-dir
–without-sqlite3-dir
–with-sqlite3-include
–without-sqlite3-include=${sqlite3-dir}/include
–with-sqlite3-lib
–without-sqlite3-lib=${sqlite3-dir}/lib
–with-sqlite3lib
–without-sqlite3lib
Gem files will remain installed in /Users/richardmyers/.bundler/tmp/
436/gems/sqlite3-ruby-1.3.2 for inspection.
Results logged to /Users/richardmyers/.bundler/tmp/436/gems/sqlite3-
ruby-1.3.2/ext/sqlite3/gem_make.out
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/installer.rb:446:in
`each’
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/installer.rb:446:in
`build_extensions’
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/installer.rb:198:in
`install’
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/
source.rb:95:in `install’
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/
installer.rb:55:in `run’
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/
spec_set.rb:12:in `each’
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/
spec_set.rb:12:in `each’
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/
installer.rb:44:in `run’
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/
installer.rb:8:in `install’
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/
cli.rb:225:in `install’
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/
vendor/thor/task.rb:22:in `send’
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/
vendor/thor/task.rb:22:in `run’
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/
vendor/thor/invocation.rb:118:in `invoke_task’
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/
vendor/thor.rb:246:in `dispatch’
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/
vendor/thor/base.rb:389:in `start’
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/bin/bundle:13
from /usr/local/bin/bundle:19:in `load’
from /usr/local/bin/bundle:19
mkmf.log:
find_header: checking for sqlite3.h… ——————– yes
“gcc -E -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin9.8.0 -I. -I/usr/
local/include -I/opt/local/include -I/sw/local/include -I/usr/include
-D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE=1 -fno-common -
pipe -fno-common conftest.c -o conftest.i”
checked program was:
/* begin */
1: #include <sqlite3.h>
/* end */
find_library: checking for sqlite3_libversion_number() in -lsqlite3…
——————– yes
“gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin9.8.0 -I.
-I/usr/local/include -I/opt/local/include -I/sw/local/include -I/usr/
include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE=1 -fno-
common -pipe -fno-common conftest.c -L. -L/usr/local/lib -L/usr/
local/lib -L/opt/local/lib -L/sw/local/lib -L/usr/lib -L. -lruby-
static -lsqlite3 -lpthread -ldl -lobjc “
conftest.c: In function ‘t’:
conftest.c:3: error: ’sqlite3_libversion_number’ undeclared (first use
in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)
()))sqlite3_libversion_number; return 0; }
/* end */
“gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin9.8.0 -I.
-I/usr/local/include -I/opt/local/include -I/sw/local/include -I/usr/
include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE=1 -fno-
common -pipe -fno-common conftest.c -L. -L/usr/local/lib -L/usr/
local/lib -L/opt/local/lib -L/sw/local/lib -L/usr/lib -L. -lruby-
static -lsqlite3 -lpthread -ldl -lobjc “
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { sqlite3_libversion_number(); return 0; }
/* end */
have_func: checking for rb_proc_arity()… ——————– no
“gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin9.8.0 -I.
-I/usr/local/include -I/opt/local/include -I/sw/local/include -I/usr/
include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE=1 -fno-
common -pipe -fno-common conftest.c -L. -L/usr/local/lib -L/usr/
local/lib -L/opt/local/lib -L/sw/local/lib -L/usr/lib -L. -
lsqlite3 -lruby-static -lsqlite3 -lpthread -ldl -lobjc “
conftest.c: In function ‘t’:
conftest.c:3: error: ‘rb_proc_arity’ undeclared (first use in this
function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))rb_proc_arity;
return 0; }
/* end */
“gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin9.8.0 -I.
-I/usr/local/include -I/opt/local/include -I/sw/local/include -I/usr/
include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE=1 -fno-
common -pipe -fno-common conftest.c -L. -L/usr/local/lib -L/usr/
local/lib -L/opt/local/lib -L/sw/local/lib -L/usr/lib -L. -
lsqlite3 -lruby-static -lsqlite3 -lpthread -ldl -lobjc “
Undefined symbols:
“_rb_proc_arity”, referenced from:
_t in ccOoG1fQ.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { rb_proc_arity(); return 0; }
/* end */
have_func: checking for sqlite3_initialize()… ——————–
no
“gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin9.8.0 -I.
-I/usr/local/include -I/opt/local/include -I/sw/local/include -I/usr/
include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE=1 -fno-
common -pipe -fno-common conftest.c -L. -L/usr/local/lib -L/usr/
local/lib -L/opt/local/lib -L/sw/local/lib -L/usr/lib -L. -
lsqlite3 -lruby-static -lsqlite3 -lpthread -ldl -lobjc “
conftest.c: In function ‘t’:
conftest.c:3: error: ’sqlite3_initialize’ undeclared (first use in
this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)
()))sqlite3_initialize; return 0; }
/* end */
“gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin9.8.0 -I.
-I/usr/local/include -I/opt/local/include -I/sw/local/include -I/usr/
include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE=1 -fno-
common -pipe -fno-common conftest.c -L. -L/usr/local/lib -L/usr/
local/lib -L/opt/local/lib -L/sw/local/lib -L/usr/lib -L. -
lsqlite3 -lruby-static -lsqlite3 -lpthread -ldl -lobjc “
Undefined symbols:
“_sqlite3_initialize”, referenced from:
_t in ccO7bkXD.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { sqlite3_initialize(); return 0; }
/* end */
–
You received this message because you are subscribed to the Google Groups “Ruby on Rails: Talk” group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
What is main difference between Ruby and Ruby on Rails?
by on Dec.25, 2010, under Ruby and Rails
Hi
What big difference between Ruby and Ruby on Rails? Is it the gems used? Capability to work with other languages? what do you think?
Thanks MC
Brent's Ruby on Rails Postings: Error installing ruby-debug-base19
by on Oct.10, 2010, under Ruby and Rails
The ruby-debug19 gems are used for interactive debugging with Ruby 1.9 (the gems without 19 on the end are for Ruby 1.8). To use the debugging feature in Rubymine (which is awesome if you haven’t tried it yet) you need to install these gems (ruby-debug-base19 and ruby-debug-ide19). I had previously used these with no problems, but yesterday when I tried installing ruby-debug-base19 on a new Ubuntu 10 system with Ruby 1.9.1 yesterday I got the following error:
make
gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -DHAVE_VM_CORE_H -DHAVE_ISEQ_H -DHAVE_INSNS_INC -DHAVE_INSNS_INFO_INC -DHAVE_EVAL_INTERN_H -I/usr/local/include/ruby-1.9.1/ruby-1.9.1-p376 -fPIC -O2 -g -Wall -Wno-parentheses -o breakpoint.o -c breakpoint.c
gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -DHAVE_VM_CORE_H -DHAVE_ISEQ_H -DHAVE_INSNS_INC -DHAVE_INSNS_INFO_INC -DHAVE_EVAL_INTERN_H -I/usr/local/include/ruby-1.9.1/ruby-1.9.1-p376 -fPIC -O2 -g -Wall -Wno-parentheses -o ruby_debug.o -c ruby_debug.c
ruby_debug.c: In function ‘ruby_method_ptr’:
ruby_debug.c:141: error: ‘rb_method_entry_t’ undeclared (first use in this function)
ruby_debug.c:141: error: (Each undeclared identifier is reported only once
ruby_debug.c:141: error: for each function it appears in.)
ruby_debug.c:141: error: ‘method’ undeclared (first use in this function)
ruby_debug.c:142: warning: implicit declaration of function ‘rb_method_entry’
ruby_debug.c: In function ‘debug_event_hook’:
ruby_debug.c:719: error: ‘rb_method_entry_t’ undeclared (first use in this function)
ruby_debug.c:719: error: ‘me’ undeclared (first use in this function)
make: *** [ruby_debug.o] Error 1
Apparently version 0.11.24 of ruby-debug-base19 was released on August 22, 2010, and it won’t install correctly on Ruby 1.9.1. this version fixed support in Ruby 1.9.2, but broke 1.9.1 support. I went back to the previous version and it works fine. so to install the ruby-debug19 gems on a Ruby 1.9.1 system, run these two commands:
sudo gem install ruby-debug-base19 -v=0.11.23
sudo gem install ruby-debug-ide19
One important note! If you’ve already attempted to install the latest version of ruby-debug-base19 and gotten the failure, ruby-debug-ide19 may fail, even if you install the working version of ruby-debug-base19. you have to actually delete the files for 0.11.24 of ruby-debug-base19, and then reinstall ruby-debug-ide19. For me on a Ubuntu system where Ruby was compiled from source:
sudo rm -rf /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.24
sudo gem install ruby-debug-ide19
Also this bug has been reported on as ticket #28512.
Brent's Ruby on Rails Postings: Error installing ruby-debug-base19
Mariuz's Blog: Installing the latest ruby on rails on any ubuntu …
by on May.20, 2010, under Ruby and Rails
I needed to have the latest rails on my ubuntu desktop : lucid lynx (the one that is by default in repository is too old)
and this command will not work on any debian based system because it’s disabled and
it will break the debian way
sudo gem update –systemanyway you can update and the replace the gem installed on the system this way
sudo gem install rubygems-updatesudo update_rubygems
if it’s not in the path (I wonder why is not there by default when the gem package is installed)
you can do this
sudo /var/lib/gems/1.8/bin/update_rubygems RubyGems 1.3.6 installed=== 1.3.6 / 2010-02-17changelog and notices——————————–RubyGems installed the following executables: /usr/bin/gem1.8
then you can install the latest stable rails
sudo gem install rails
Mariuz's Blog: Installing the latest ruby on rails on any ubuntu …