I'm trying to install SASS on Codeanywhere project.
The process is explained here: http://docs.codeanywhere.com/advancedtopics/sass.html
I have succed to install ruby with first command but when I call second command
sudo gem install sass
get this error
If I call only...
gem install sass
get this error
What to do?
exec: autoreconf: not found
It looks like you're missing autoreconf. It's present in the Ubuntu autoconf package:
sudo apt-get install autoconf
Related
I am having Jekyll installation error in termux on my android phone. When I am trying to install it's failing to build gem native extension for termux....Jekyll installation code in termux
Apparently the Termux Wiki has documented the following with Jekyll as an example:
Instructions
Firstly you need to install all packages in the "pkg requirements" row. Example for Jekyll:
pkg install ruby clang make libffi
Then you need to follow the special instructions. If no special instructions are given, you can install the package with:
gem install jekyll
Note (friendly reminder) for the gems that build native extensions make sure you have a build environment ready; a minimum can be achieved by running:
pkg install autoconf build-essential
I tried to install a package using RubyGems (please note that I use Windows Subsystem for Linux). I was going to install Jekyll package.
I typed $ gem install jekyll. After that it came up with an error:
Building native extensions. This could take a while...
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:76: warning: Insecure world writable dir /mnt/c in PATH, mode 040777
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
Can you please explain the error and any possible ways to fix it?
You need to install the build tools needed:
sudo apt-get update
sudo apt-get install build-essential
I had to install ruby-full to get this working on WSL:
sudo apt install ruby-full
Trying to install sass within a bit bucket pipelines docker instance and getting the error Failed to build gem native extension
The logs show the following:
gem install sass --no-user-install
Successfully installed rb-fsevent-0.10.2
Building native extensions. This could take a while...
ERROR: Error installing sass:
ERROR: Failed to build gem native extension.
I am using a image php:7.1.1
Ruby and Gem should be installed as in my script I run:
apt-get update && apt-get install -y unzip nodejs ruby-full
gem install sass --no-user-install
Thanks in advance
I had the same problem. The following packages have solved the problem:
apt-get install -y ruby-dev gcc automake libtool rubygems build-essential
Best regards
I noticed this error today too using gitlab-ci with a docker image based on php:7.0.
I tried installing ruby-dev and doing a gem update --system first as I found in another SO solution and it didn't fix the error.
Sorry i couldn't post this as a comment, my reputation is too low, but I wanted you to know you're not alone. Hopefully this is a gem toolchain issue that gets fixed quickly.
I installed Ruby v2.1.4 from source. I installed all necessary libaries using:
yum install gcc g++ make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel
All succeeded.
Now when I want to install a gem with:
gem install bundler-1.7.4.gem
I get:
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
I am sure that zlib is installed:
locate zlib
results in a long list of
/lib/modules/2.6.32-431.el6.x86_64/kernel/crypto/zlib.ko
/lib/modules/2.6.32-431.el6.x86_64/kernel/lib/zlib_deflate
/lib/modules/2.6.32-431.el6.x86_64/kernel/lib/zlib_deflate/zlib_deflate.ko
/lib64/rsyslog/lmzlibw.so
/usr/include/zlib.h
/usr/lib64/pkgconfig/zlib.pc
/usr/lib64/python2.6/encodings/zlib_codec.py
/usr/lib64/python2.6/encodings/zlib_codec.pyc
/usr/lib64/python2.6/encodings/zlib_codec.pyo
/usr/lib64/python2.6/lib-dynload/zlibmodule.so
/usr/local/share/doc/ruby/capi/html/db/d74/zlib_8c.html
/usr/local/share/doc/ruby/capi/html/db/d74/zlib_8c_source.html
/usr/local/share/ri/2.1.0/system/Zlib/zlib_version-c.ri
/usr/share/doc/zlib-1.2.3
/usr/share/doc/zlib-devel-1.2.3
/usr/share/doc/zlib-1.2.3/ChangeLog
/usr/share/doc/zlib-1.2.3/FAQ
/usr/share/doc/zlib-1.2.3/README
/usr/share/doc/zlib-devel-1.2.3/README
/usr/share/doc/zlib-devel-1.2.3/algorithm.txt
/usr/share/doc/zlib-devel-1.2.3/example.c
/usr/share/doc/zlib-devel-1.2.3/minigzip.c
/usr/share/man/man3/zlib.3.gz
/usr/src/kernels/2.6.32-431.el6.x86_64/include/config/zlib
/usr/src/kernels/2.6.32-431.el6.x86_64/include/config/crypto/zlib.h
/usr/src/kernels/2.6.32-431.el6.x86_64/include/config/jffs2/zlib.h
/usr/src/kernels/2.6.32-431.el6.x86_64/include/config/ubifs/fs/zlib.h
/usr/src/kernels/2.6.32-431.el6.x86_64/include/config/zlib/deflate.h
/usr/src/kernels/2.6.32-431.el6.x86_64/include/config/zlib/inflate.h
/usr/src/kernels/2.6.32-431.el6.x86_64/include/linux/zlib.h
/usr/src/kernels/2.6.32-431.el6.x86_64/lib/zlib_deflate
/usr/src/kernels/2.6.32-431.el6.x86_64/lib/zlib_inflate
/usr/src/kernels/2.6.32-431.el6.x86_64/lib/zlib_deflate/Makefile
/usr/src/kernels/2.6.32-431.el6.x86_64/lib/zlib_inflate/Makefile
Did I miss something?
I have found the solution at this blog. I am unable to use rvm because server have no internet connection even through proxy.
While installing ruby from sources doing the following solved the issue:
Remove the installed Ruby with make clean
Install libssl-dev with your OS's package manager of choice. E.g. apt-get install libssl-dev
Install zlib1g-dev with your OS's package manager of choice. E.g. apt-get install zlib1g-dev
Config make file to include openssl by go to ext/openssl and run ruby extconf.rb
Config make file to include zlib by go to ext/zlib and run ruby extconf.rb
Go back to ruby source code directory run make && make install
You should be able to successfully run gem install bundler
I am using rvm, ruby 1.9.3, link-grammar (sudo apt-get install link-grammar), and pkg-config. I have the same setup on OSX, and it works great.
Running 'gem install linkparser' fails on this:
/usr/local/include/link-grammar/link-includes.h:16:36
fatal error: link-grammar/api-types.h: No such file or directory
I've tried installing link-grammer manually as well, then running:
gem install linkparser -- --with-link-grammar=/usr/local
gem install linkparser -- --with-link-grammar=/usr/share
gem install linkparser -- --with-link-grammar=/usr/share/link-grammar
I get the same error every time.
Does anyone know how I can get linkparser to recognize link-grammar?
Thanks
While not a direct answer, I had a simlar problem with Python.
Installing the linkparser-dev package helps.
I successfully installed it by doing the following:
wget http://www.abisource.com/downloads/link-grammar/4.7.4/link-grammar-4.7.4.tar.gz
tar zxvf link-grammar-4.7.4.tar.gz
cd link-grammar-4.7.4
mkdir -p /home/MYUSER/usr/local
./configure --prefix=/home/MYUSER/usr/local
make
make install
gem install linkparser -- --with-link-grammar-dir=/home/MYUSER/usr/local/
Source: http://code.tripodtravel.co.nz/2010/01/02/installing-link-parser-on-dreamhost/
You should try:
gem install linkparser -- --with-opt-dir=/usr/local
OR:
gem install linkparser -- --with-link-grammar-dir=/usr/local