I'm trying to get a Chef Server up and running on a Windows 2008 Server box.
I'm following the process here:
http://wiki.opscode.com/display/chef/Installing+Chef+Server+Manually
I've just installed Gecode and the next step is a ruby command:
gem install chef-server chef-server-api chef-server chef-solr
However, running this command gives the following output suggesting that Gecode isn't installed.
C:\Users\Administrator>gem install chef-server chef-server-api chef-server chef-
solr
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing chef-server:
ERROR: Failed to build gem native extension.
C:/opscode/chef/embedded/bin/ruby.exe extconf.rb
checking for main() in -lgecodesearch... no
================================================================================
=========
Gecode >3.5 must be installed (http://www.gecode.org/).
OSX:
brew install gecode
For convenience, we have built Gecode for Debian/Ubuntu (<release> is lucid or m
averick):
Add the following two lines to /etc/apt/sources.list.d/opscode.list:
deb http://apt.opscode.com <release> main
deb-src http://apt.opscode.com <release> main
Then run:
curl http://apt.opscode.com/packages#opscode.com.gpg.key | sudo apt-key add
-
sudo apt-get update
sudo apt-get install libgecode-dev
Other distributions can build from source.
================================================================================
=========
*** 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=C:/opscode/chef/embedded/bin/ruby
--with-gecodesearchlib
--without-gecodesearchlib
extconf.rb:57:in `<main>': Gecode not installed (RuntimeError)
Gem files will remain installed in C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/
gems/dep_selector-0.0.8 for inspection.
Results logged to C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/dep_selector
-0.0.8/ext/dep_gecode/gem_make.out
Building native extensions. This could take a while...
ERROR: Error installing chef-server-api:
ERROR: Failed to build gem native extension.
C:/opscode/chef/embedded/bin/ruby.exe extconf.rb
checking for main() in -lgecodesearch... no
================================================================================
=========
Gecode >3.5 must be installed (http://www.gecode.org/).
OSX:
brew install gecode
For convenience, we have built Gecode for Debian/Ubuntu (<release> is lucid or m
averick):
Add the following two lines to /etc/apt/sources.list.d/opscode.list:
deb http://apt.opscode.com <release> main
deb-src http://apt.opscode.com <release> main
Then run:
curl http://apt.opscode.com/packages#opscode.com.gpg.key | sudo apt-key add
-
sudo apt-get update
sudo apt-get install libgecode-dev
I installed version 3.7.3 with the default options.
Anyone have an idea how I can proceed? I don't know anything about Ruby or Gecode.
TIA
Chef server is not supported on Windows.
Related
I'm encountering the error below when running vagrant plugin install vagrant-libvirt
Setup
install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
install in Homebrew
brew install --cask vagrant && \
brew install make gcc qemu libiconv libvirt
double check libvirt path
➜ ~ brew --prefix libvirt
/opt/homebrew/opt/libvirt
Update path
HOMEBREW_HOME="/opt/homebrew/opt"
LIBICONV_HOME="$HOMEBREW_HOME/libiconv"
export PATH="$LIBICONV_HOME/bin:$PATH"
export PATH="$HOMEBREW_HOME/make/libexec/gnubin:$PATH"
export LDFLAGS="-L$LIBICONV_HOME/lib"
export CPPFLAGS="-I$LIBICONV_HOME/include"
export CONFIGURE_ARGS="with-libvirt-lib=$(brew --prefix libvirt)/lib with-libvirt-include=$(brew --prefix libvirt)/include"
Error
➜ ~ vagrant plugin install vagrant-libvirt
Installing the 'vagrant-libvirt' plugin. This can take a few minutes...
Fetching formatador-1.1.0.gem
Fetching fog-core-2.3.0.gem
Fetching fog-json-1.2.0.gem
Fetching nokogiri-1.13.9-x86_64-darwin.gem
Fetching fog-xml-0.1.4.gem
Fetching ruby-libvirt-0.8.0.gem
Building native extensions. This could take a while...
Vagrant failed to properly resolve required dependencies. These
errors can commonly be caused by misconfigured plugin installations
or transient network issues. The reported error is:
ERROR: Failed to build gem native extension.
current directory: /Users/yakforward/.vagrant.d/gems/2.7.6/gems/ruby-libvirt-0.8.0/ext/libvirt
/opt/vagrant/embedded/bin/ruby -I /opt/vagrant/embedded/lib/ruby/2.7.0 -r ./siteconf20221111-11883-1v7zec5.rb extconf.rb
Looking for libvirt in /opt/homebrew/opt/libvirt/include and /opt/homebrew/opt/libvirt/lib
checking for virConnectOpen() in -lvirt... no
*** 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
--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=/opt/vagrant/embedded/bin/$(RUBY_BASE_NAME)
--with-libvirt-include
--with-libvirt-lib
--with-virt-dir
--without-virt-dir
--with-virt-include
--without-virt-include=${virt-dir}/include
--with-virt-lib
--without-virt-lib=${virt-dir}/lib
--with-virtlib
--without-virtlib
extconf.rb:44:in `<main>': No working libvirt installation found (RuntimeError)
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Users/yakforward/.vagrant.d/gems/2.7.6/extensions/x86_64-darwin-19/2.7.0/ruby-libvirt-0.8.0/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /Users/yakforward/.vagrant.d/gems/2.7.6/gems/ruby-libvirt-0.8.0 for inspection.
Results logged to /Users/yakforward/.vagrant.d/gems/2.7.6/extensions/x86_64-darwin-19/2.7.0/ruby-libvirt-0.8.0/gem_make.out
info
➜ ~ neofetch
'c. yakforward#yakforward.local
,xNMM. ---------------------------
.OMMMMo OS: macOS 13.0.1 22A400 arm64
OMMM0, Host: MacBookAir10,1
.;loddo:' loolloddol;. Kernel: 22.1.0
cKMMMMMMMMMMNWMMMMMMMMMM0: Uptime: 53 mins
.KMMMMMMMMMMMMMMMMMMMMMMMWd. Packages: 89 (brew)
XMMMMMMMMMMMMMMMMMMMMMMMX. Shell: zsh 5.8.1
;MMMMMMMMMMMMMMMMMMMMMMMM: Resolution: 1440x900
:MMMMMMMMMMMMMMMMMMMMMMMM: DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX. WM: Quartz Compositor
kMMMMMMMMMMMMMMMMMMMMMMMMWd. WM Theme: Blue (Dark)
.XMMMMMMMMMMMMMMMMMMMMMMMMMMk Terminal: iTerm2
.XMMMMMMMMMMMMMMMMMMMMMMMMK. Terminal Font: Monaco 12
kMMMMMMMMMMMMMMMMMMMMMMd CPU: Apple M1
;KMMMMMMMWXXWMMMMMMMk. GPU: Apple M1
.cooc,. .,coo:. Memory: 1129MiB / 8192MiB
➜ ~ vagrant --version
Vagrant 2.3.2
Logs
mkmf.log
gem_make.out.zip
Step 1:
brew install qemu gcc libvirt.
Step 2:
echo 'security_driver = "none"' >> /usr/local/etc/libvirt/qemu.conf
echo "dynamic_ownership = 0" >> /usr/local/etc/libvirt/qemu.conf
echo "remember_owner = 0" >> /usr/local/etc/libvirt/qemu.conf
If that doesn't work for you, try this tutorial together with this one.
I am trying to install ruby-qml on Ubuntu 15.10 (Wily). Apparently some prerequisites are missing:
:#> gem install qml
Building native extensions. This could take a while...
ERROR: Error installing qml:
ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 extconf.rb
checking for qmake... yes
>>> building libqmlbind...
Project ERROR: Unknown module(s) in QT: qml quick
make: *** No targets specified and no makefile found. Stop.
ERROR: Failed to build libqmlbind
*** 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/bin/ruby2.1
--with-qmake
--without-qmake
--enable-debug
--disable-debug
--enable-clean
--disable-clean
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.1.0/gems/qml-1.0.2 for inspection.
Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/qml-1.0.2/gem_make.out
I already tried to install some of the usual suspects (build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev vim libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev git-core subversion autoconf xorg-dev libgl1-mesa-dev libglu1-mesa-dev), but no luck.
There are no prerequisites mentioned for Linux in the documentation.
What is missing?
You are most probably missing Qt packages. Evident by following line of error:
Project ERROR: Unknown module(s) in QT: qml quick
Install it using:
sudo apt-get install libqt5qml5 libqt5quick5 qtdeclarative5-dev qt5-default
Installing libqt5quickparticles5 and qtdeclarative5-dev helped to get a step further. Yet, there were plenty more missing packages.
qtcreator-plugin-ubuntu has a rather exhaustive list of useful dependencies for qt5 programming. Installing it solved my troubles.
I've followed the mentioned answers here, but it didn't work alone. I found another answer here
So in my case, I've installed the following packages in order to install ruby-qml successfully.
libqt5qml5
libqt5quick5
qtdeclarative5-dev
qt5-default
qtbase5-private-dev
apt install libqt5qml5 libqt5quick5 qtdeclarative5-dev qt5-default qtbase5-private-dev
HTH
Anyone seen this?
gem update nokogiri
Updating installed gems
Updating nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20150524-28193-cqkmxr.rb extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
checking for gzdopen() in -lz... no
zlib is missing; necessary for building libxml2
*** 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=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
--help
--clean
--use-system-libraries
--enable-static
--disable-static
I've just had this same problem on a fresh Ubuntu 14.04 box and it turns out there is a dependency for the zlib source (i.e. zlib.h) so you need to:
On Ubuntu or Debian:
sudo apt-get install zlib1g-dev
On Fedora, CentOS or RHEL:
sudo yum install zlib-devel
Or find the equivalent package for your operating system.
You need to install the missing dependencies, e.g.:
sudo apt-get install gcc ruby-dev libxslt-dev libxml2-dev zlib1g-dev
Then try again:
gem install nokogiri
root#ubuntu10:~# gem install ruby-augeas
Fetching: ruby-augeas-0.5.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing ruby-augeas:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb
*** 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
--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/rvm/rubies/ruby-1.9.3-p327/bin/ruby
--with-augeas-config
--without-augeas-config
--with-pkg-config
--without-pkg-config
extconf.rb:27:in `<main>': augeas-devel not installed (RuntimeError)
Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.3-p327/gems/ruby-augeas-0.5.0 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.9.3-p327/gems/ruby-augeas-0.5.0/ext/augeas/gem_make.out
No idea what lib is missing....
root#ubuntu10:~# apt-get install libaugeas-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libaugeas-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 108 not upgraded.
I have also installed the libaugeas-dev lib , it still doesn't work
On Ubuntu 12.04. I fixed it with:
$ sudo apt-get install pkg-config
As per following reply: http://www.redhat.com/archives/augeas-devel/2009-August/msg00061.html
augeas-devel not installed (RuntimeError)
You should install it :
sudo apt-get install libaugeas-dev
You don't need to use gem to install ruby-augeas on Ubuntu, it's packaged, so just use:
sudo apt-get install libaugeas-ruby
If you want up-to-date versions of Augeas and ruby-augeas, you can use my PPA:
sudo apt-add-repository ppa:raphink/augeas
sudo apt-get update
sudo apt-get install libaugeas-ruby
you could try gem install ruby-augeas --pre
SO all begins when i wanted to install zena . But i messed up installing differents parts of Ruby , gems , mysql . In the end . I ended with installing zena correctly , but when i execute : rake zena:init as it says in the tutorial , i receve :
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.13.1. Can't find Magick-config in /usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec
*** 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
Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.13.1 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
Building native extensions. This could take a while....
I wish i can delete everything and reinstall ruby and all of it more correctly . Can anyone help me with this ? . Thank you guys !
Are you on ubuntu?
Then try to install the this package:
sudo apt-get install libmagickwand-dev
If this didn't help, try to install these packages:
sudo apt-get install build-essential ruby-dev
The question seems similar to
Can't install RMagick 2.13.1. Can't find MagickWand.h.
Try my answer there.
From the posted log, it seems like it cannot find ImageMagick (which is required) at all.
Try this when you are getting dependency error:
E: Some index files failed to download. They have been ignored, or old ones used instead after apt-get update
Otherwise follow the steps mentioned below:
sudo cp /etc/apt/sources.list ~/
sudo wget "http://pastebin.com/raw.php?i=uzhrtg5M" -O /etc/apt/sources.list
sudo apt-get update
sudo rm /etc/apt/sources.list.d/ubuntu-extras.list
sudo apt-get update