Skip to content

Instantly share code, notes, and snippets.

@rob137
Last active January 9, 2018 16:13
Show Gist options
  • Save rob137/1dd2452f61680b245f639166367494e8 to your computer and use it in GitHub Desktop.
Save rob137/1dd2452f61680b245f639166367494e8 to your computer and use it in GitHub Desktop.
Travis CLI Installation error on Ubuntu 16.04 LTS
UPDATE
https://github.com/travis-ci/travis-ci/issues/7260
Looks as if Ubuntu 16.04 LTS isn't yet supported.
Following these instructions: https://gist.github.com/jarun/df5d864f0b2600564c9bc13cfaca7497
(xenial)rob137@localhost:~$ sudo apt install ruby ruby-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
ruby-dev is already the newest version (2:2.3.0+1bbox1~xenial1).
Suggested packages:
ri
The following packages will be upgraded:
ruby
1 upgraded, 0 newly installed, 0 to remove and 108 not upgraded.
Need to get 10.5 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu xenial/main amd64 ruby all 2:2.3.0+1bbox1~xenial1 [10.5 kB]
Fetched 10.5 kB in 0s (39.2 kB/s)
(Reading database ... 147137 files and directories currently installed.)
Preparing to unpack .../ruby_2%3a2.3.0+1bbox1~xenial1_all.deb ...
Unpacking ruby (2:2.3.0+1bbox1~xenial1) over (1:2.3.0+1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up ruby (2:2.3.0+1bbox1~xenial1) ...
(xenial)rob137@localhost:~$ sudo gem install travis
Building native extensions. This could take a while...
ERROR: Error installing travis:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.3.0/gems/ffi-1.9.18/ext/ffi_c
/usr/bin/ruby2.3 -r ./siteconf20180109-27746-1u0opob.rb extconf.rb
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi... no
checking for shlwapi.h... no
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
checking for ffi_prep_cif_var()... no
creating extconf.h
creating Makefile
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ffi-1.9.18/mkmf.log
current directory: /var/lib/gems/2.3.0/gems/ffi-1.9.18/ext/ffi_c
make "DESTDIR=" clean
/var/lib/gems/2.3.0/gems/make-0.3.1/bin/make:4:in `<top (required)>': undefined local variable or method `make' for main:Object (NameError)
from /usr/local/bin/make:23:in `load'
from /usr/local/bin/make:23:in `<main>'
current directory: /var/lib/gems/2.3.0/gems/ffi-1.9.18/ext/ffi_c
make "DESTDIR="
/var/lib/gems/2.3.0/gems/make-0.3.1/bin/make:4:in `<top (required)>': undefined local variable or method `make' for main:Object (NameError)
from /usr/local/bin/make:23:in `load'
from /usr/local/bin/make:23:in `<main>'
make failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.3.0/gems/ffi-1.9.18 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ffi-1.9.18/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment