Hi All,
Summary:
I am following the installation guide for chef-server using chef-solo
[1] and all went well up to the installation of the Ruby gem
"chef-server-api" which fails with
checking for main() in -lgecodesearch… no
Gecode >3.5 must be installed (http://www.gecode.org/).
Details:
I have gone through the RHEL/CentOS notes [2] and ensure the following is done
- SELinux is disabled
- EPEL repo is enabled
- /usr/local/lib is in ld.so.conf and "ldconfig -p | grep gecode"
shows that the relevant gecode libs are being “seen” by the linker.
- The gecode libraries are definitely in /usr/local/lib as opposed to
/usr/local/lib64
however it still appears that the chef-server-api gem is unable to
find the correct libraries. I also tried
- Setting “LD_LIBRARY_PATH=/usr/local/lib” but this did not help.
- Manually install the latest gecode libs in /usr/local but this did not help.
Any info would be much appreciated!
Cheers,
Fred.
[1] http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo
[2] http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo#InstallingChefServerusingChefSolo-CentOS%2FRHELInstallationNotes
Hi Fred,
sorry, can't help you with the gecode issue, but in general you might
want to check out the knife-server [1] plugin for bootstrapping (and
backup/restore) of chef servers.
There's currently only a bootstrap template for debian based systems
[2], but you might be able to adapt that for redhat based distros.
HTH, Torben
[1] http://fnichol.github.com/knife-server/
[2] https://github.com/fnichol/knife-server/blob/master/lib/chef/knife/bootstrap/chef-server-debian.erb
On Mon, Oct 1, 2012 at 1:58 PM, Friedrich Clausen fred@derf.nl wrote:
Hi All,
Summary:
I am following the installation guide for chef-server using chef-solo
[1] and all went well up to the installation of the Ruby gem
"chef-server-api" which fails with
checking for main() in -lgecodesearch... no
Gecode >3.5 must be installed (http://www.gecode.org/).
Details:
I have gone through the RHEL/CentOS notes [2] and ensure the following is done
- SELinux is disabled
- EPEL repo is enabled
- /usr/local/lib is in ld.so.conf and "ldconfig -p | grep gecode"
shows that the relevant gecode libs are being "seen" by the linker.
- The gecode libraries are definitely in /usr/local/lib as opposed to
/usr/local/lib64
however it still appears that the chef-server-api gem is unable to
find the correct libraries. I also tried
- Setting "LD_LIBRARY_PATH=/usr/local/lib" but this did not help.
- Manually install the latest gecode libs in /usr/local but this did not help.
Any info would be much appreciated!
Cheers,
Fred.
[1] http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo
[2] http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo#InstallingChefServerusingChefSolo-CentOS%2FRHELInstallationNotes
We use Aegis's RPM repo for bootstrapping Chef servers on CentOS 5.x and find it incredibly helpful for providing all the deps.
http://blog.aegisco.com/index.php/2011/04/08/chef-0-10-pre-requisites-gecode-and-ruby-rpms/
If you can use RHEL 6.x, gecode comes with EPEL so you won't need Aegis at all.
On Oct 1, 2012, at 9:06 AM, Torben Knerr ukio@gmx.de wrote:
Hi Fred,
sorry, can't help you with the gecode issue, but in general you might
want to check out the knife-server [1] plugin for bootstrapping (and
backup/restore) of chef servers.
There's currently only a bootstrap template for debian based systems
[2], but you might be able to adapt that for redhat based distros.
HTH, Torben
[1] http://fnichol.github.com/knife-server/
[2] https://github.com/fnichol/knife-server/blob/master/lib/chef/knife/bootstrap/chef-server-debian.erb
On Mon, Oct 1, 2012 at 1:58 PM, Friedrich Clausen fred@derf.nl wrote:
Hi All,
Summary:
I am following the installation guide for chef-server using chef-solo
[1] and all went well up to the installation of the Ruby gem
"chef-server-api" which fails with
checking for main() in -lgecodesearch... no
Gecode >3.5 must be installed (http://www.gecode.org/).
Details:
I have gone through the RHEL/CentOS notes [2] and ensure the following is done
- SELinux is disabled
- EPEL repo is enabled
- /usr/local/lib is in ld.so.conf and "ldconfig -p | grep gecode"
shows that the relevant gecode libs are being "seen" by the linker.
- The gecode libraries are definitely in /usr/local/lib as opposed to
/usr/local/lib64
however it still appears that the chef-server-api gem is unable to
find the correct libraries. I also tried
- Setting "LD_LIBRARY_PATH=/usr/local/lib" but this did not help.
- Manually install the latest gecode libs in /usr/local but this did not help.
Any info would be much appreciated!
Cheers,
Fred.
[1] http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo
[2] http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo#InstallingChefServerusingChefSolo-CentOS%2FRHELInstallationNotes
On Mon, Oct 1, 2012 at 6:37 PM, Julian C. Dunn lists@aquezada.com wrote:
On Mon, Oct 1, 2012 at 1:58 PM, Friedrich Clausen fred@derf.nl wrote:
checking for main() in -lgecodesearch... no
Gecode >3.5 must be installed (http://www.gecode.org/).
I vaguely recall something like this. If you're checked the gecode
version itself, maybe look at the ruby bindings to it? Perhaps its one
of those compiled-on-install extensions and it didn't get built right
for some reason (ordering, weird ruby env, etc)? Sorry that's all I
got.
KC
On Tue, Oct 2, 2012 at 3:37 AM, Julian C. Dunn lists@aquezada.com wrote:
We use Aegis's RPM repo for bootstrapping Chef servers on CentOS 5.x and find it incredibly helpful for providing all the deps.
http://blog.aegisco.com/index.php/2011/04/08/chef-0-10-pre-requisites-gecode-and-ruby-rpms/
If you can use RHEL 6.x, gecode comes with EPEL so you won't need Aegis at all.
Julian, thanks! I'll take a look at that. Most of our hosts are
currently RHEL 5.x but we'll be starting to roll out RHEL 6.x so
that's good info.
All - thanks for the other suggestions - I will try them out too.
Fred.
On Oct 1, 2012, at 9:06 AM, Torben Knerr ukio@gmx.de wrote:
Hi Fred,
sorry, can't help you with the gecode issue, but in general you might
want to check out the knife-server [1] plugin for bootstrapping (and
backup/restore) of chef servers.
There's currently only a bootstrap template for debian based systems
[2], but you might be able to adapt that for redhat based distros.
HTH, Torben
[1] http://fnichol.github.com/knife-server/
[2] https://github.com/fnichol/knife-server/blob/master/lib/chef/knife/bootstrap/chef-server-debian.erb
On Mon, Oct 1, 2012 at 1:58 PM, Friedrich Clausen fred@derf.nl wrote:
Hi All,
Summary:
I am following the installation guide for chef-server using chef-solo
[1] and all went well up to the installation of the Ruby gem
"chef-server-api" which fails with
checking for main() in -lgecodesearch... no
Gecode >3.5 must be installed (http://www.gecode.org/).
Details:
I have gone through the RHEL/CentOS notes [2] and ensure the following is done
- SELinux is disabled
- EPEL repo is enabled
- /usr/local/lib is in ld.so.conf and "ldconfig -p | grep gecode"
shows that the relevant gecode libs are being "seen" by the linker.
- The gecode libraries are definitely in /usr/local/lib as opposed to
/usr/local/lib64
however it still appears that the chef-server-api gem is unable to
find the correct libraries. I also tried
- Setting "LD_LIBRARY_PATH=/usr/local/lib" but this did not help.
- Manually install the latest gecode libs in /usr/local but this did not help.
Any info would be much appreciated!
Cheers,
Fred.
[1] http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo
[2] http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo#InstallingChefServerusingChefSolo-CentOS%2FRHELInstallationNotes