Skip to content

Instantly share code, notes, and snippets.

@nesquena
Created August 6, 2011 02:56
Show Gist options
  • Save nesquena/1128958 to your computer and use it in GitHub Desktop.
Save nesquena/1128958 to your computer and use it in GitHub Desktop.
Issue with Padrino and Travis-CI
Using worker: staging:worker-2

$ git clone --depth=1000 --quiet git://github.com/padrino/padrino-framework.git ~/builds/padrino/padrino-framework
$ git checkout -qf 5e7f244de66bf412e5183b50827019d894eb6e4d
$ rvm use 1.9.2
Using /home/vagrant/.rvm/gems/ruby-1.9.2-p290
$ export BUNDLE_GEMFILE=/home/vagrant/builds/padrino/padrino-framework/Gemfile

$ bundle install
Installing memcached (1.3) with native extensions /home/vagrant/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:551:
in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
./configure: line 19148: syntax error near unexpected token `sasl,,'
./configure: line 19148: `      AC_LIB_HAVE_LINKFLAGS(sasl,,'
make: *** [config.status] Error 2
*** extconf.rb failed ***
extconf.rb:64:in `chdir': No such file or directory - /home/vagrant/.rvm/gems/ruby-1.9.2-p290/gems/memcached-1.3/ext/lib (Errno::ENOENT)
	from extconf.rb:64:in `check_libmemcached'
	from extconf.rb:71:in `<main>'
Gem files will remain installed in /home/vagrant/.rvm/gems/ruby-1.9.2-p290/gems/memcached-1.3 for inspection.
@michaelklishin
Copy link

We can reproduce it by manually installing memcached gem but I am not sure what configure has that syntax error yet. Interestingly enough, dalli installs just fine so if you can use that, do it.

@michaelklishin
Copy link

This turns out to be a known memcached gem issue:

@landtax
Copy link

landtax commented Nov 18, 2011

Tryt this. It worked for me.

apt-get install gettext

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment