Failed to install from source on SuSE (bundle failed when install ruby-libvirt)

Hi List,

I am following the instruction here(
Foreman :: Manual) and
reference here(
http://sysadminpy.com/sysadmin/2012/04/05/setting-up-foreman-on-centosrhel-57-part-2/)
to install foreman 1.5(stable) on a SuSE enterprise Linux 11 sp2 box.

Here is my environment

sles:/usr/local/src/foreman-1.5-stable # rvm list

rvm rubies

=* ruby-1.9.3-p547 [ x86_64 ]

=> - current

=* - current && default

* - default

sles:/usr/local/src/foreman-1.5-stable # rpm -qa|grep libvirt
libvirt-cim-0.5.12-0.7.16
libvirt-client-0.9.6-0.13.42
libvirt-devel-0.9.6-0.13.42
libvirt-devel-32bit-0.9.6-0.13.42
libvirt-0.9.6-0.13.42

(Actually i don't need foreman to management any virtualization staff at
all)

When ran "sles:/usr/local/src/foreman-1.5-stable # bundle install --without
mysql2 pg test development --path vendor"

Error Message are as below:

checking for VIR_DOMAIN_QEMU_MONITOR_COMMAND_HMP in
libvirt/libvirt-qemu.h… yes
checking for libvirt/libvirt-lxc.h… no
creating extconf.h
creating Makefile

make clean

make
compiling connect.c
compiling domain.c
In file included from domain.c:26:
/usr/local/rvm/rubies/ruby-1.9.3-p547/include/ruby-1.9.1/ruby/backward/st.h:2:2:
warning: #warning use "ruby/st.h" instead of bare "st.h"
domain.c:1944: error: ‘VIR_DOMAIN_SCHEDULER_CPU_SHARES’ undeclared here
(not in a function)
domain.c:1945: error: ‘VIR_DOMAIN_SCHEDULER_VCPU_PERIOD’ undeclared here
(not in a function)
domain.c:1946: error: ‘VIR_DOMAIN_SCHEDULER_VCPU_QUOTA’ undeclared here
(not in a function)
domain.c:1953: error: ‘VIR_DOMAIN_SCHEDULER_WEIGHT’ undeclared here (not in
a function)
domain.c:1954: error: ‘VIR_DOMAIN_SCHEDULER_CAP’ undeclared here (not in a
function)
domain.c:1955: error: ‘VIR_DOMAIN_SCHEDULER_RESERVATION’ undeclared here
(not in a function)
domain.c:1956: error: ‘VIR_DOMAIN_SCHEDULER_LIMIT’ undeclared here (not in
a function)
domain.c:1957: error: ‘VIR_DOMAIN_SCHEDULER_SHARES’ undeclared here (not in
a function)
domain.c:2149: error: ‘VIR_DOMAIN_BLKIO_DEVICE_WEIGHT’ undeclared here (not
in a function)
domain.c:2149: error: initializer element is not constant
domain.c:2149: error: (near initialization for ‘blkio_allowed[1].name’)
domain.c:2149: error: ‘VIR_TYPED_PARAM_STRING’ undeclared here (not in a
function)
domain.c:2149: error: initializer element is not constant
domain.c:2149: error: (near initialization for ‘blkio_allowed[1].type’)
make: *** [domain.o] Error 1

make failed, exit code 2

Gem files will remain installed in
/usr/local/src/foreman-1.5-stable/vendor/ruby/1.9.1/gems/ruby-libvirt-0.5.2
for inspection.
Results logged to
/usr/local/src/foreman-1.5-stable/vendor/ruby/1.9.1/extensions/x86_64-linux/1.9.1/ruby-libvirt-0.5.2/gem_make.out
An error occurred while installing ruby-libvirt (0.5.2), and Bundler cannot
continue.
Make sure that gem install ruby-libvirt -v '0.5.2' succeeds before
bundling.

Tried gem install ruby-libvirt -v '0.5.2' and no luck. (same error message)

Are there any way to skip this gem coz i don't need it at all.

Thanks,

··· -- jOe

> Hi List,
>
> I am following the instruction here(
> Foreman :: Manual) and
> reference here(
> http://sysadminpy.com/sysadmin/2012/04/05/setting-up-foreman-on-centosrhel-57-part-2/)
> to install foreman 1.5(stable) on a SuSE enterprise Linux 11 sp2 box.
>
> Here is my environment
>
> sles:/usr/local/src/foreman-1.5-stable # rvm list
>
> rvm rubies
>
> =* ruby-1.9.3-p547 [ x86_64 ]
>
> # => - current
> # =* - current && default
> # * - default
>
> sles:/usr/local/src/foreman-1.5-stable # rpm -qa|grep libvirt
> libvirt-cim-0.5.12-0.7.16
> libvirt-client-0.9.6-0.13.42
> libvirt-devel-0.9.6-0.13.42
> libvirt-devel-32bit-0.9.6-0.13.42
> libvirt-0.9.6-0.13.42
>
> (Actually i don't need foreman to management any virtualization staff at
> all)
>
> When ran "sles:/usr/local/src/foreman-1.5-stable # bundle install
> --without mysql2 pg test development --path vendor"
>
> add --without libvirt to bundle

Ohad

··· On Tue, Oct 21, 2014 at 10:02 PM, Joe,Yu wrote:

Error Message are as below:

checking for VIR_DOMAIN_QEMU_MONITOR_COMMAND_HMP in
libvirt/libvirt-qemu.h… yes
checking for libvirt/libvirt-lxc.h… no
creating extconf.h
creating Makefile

make clean

make
compiling connect.c
compiling domain.c
In file included from domain.c:26:
/usr/local/rvm/rubies/ruby-1.9.3-p547/include/ruby-1.9.1/ruby/backward/st.h:2:2:
warning: #warning use “ruby/st.h” instead of bare “st.h”
domain.c:1944: error: ‘VIR_DOMAIN_SCHEDULER_CPU_SHARES’ undeclared here
(not in a function)
domain.c:1945: error: ‘VIR_DOMAIN_SCHEDULER_VCPU_PERIOD’ undeclared here
(not in a function)
domain.c:1946: error: ‘VIR_DOMAIN_SCHEDULER_VCPU_QUOTA’ undeclared here
(not in a function)
domain.c:1953: error: ‘VIR_DOMAIN_SCHEDULER_WEIGHT’ undeclared here (not
in a function)
domain.c:1954: error: ‘VIR_DOMAIN_SCHEDULER_CAP’ undeclared here (not in a
function)
domain.c:1955: error: ‘VIR_DOMAIN_SCHEDULER_RESERVATION’ undeclared here
(not in a function)
domain.c:1956: error: ‘VIR_DOMAIN_SCHEDULER_LIMIT’ undeclared here (not in
a function)
domain.c:1957: error: ‘VIR_DOMAIN_SCHEDULER_SHARES’ undeclared here (not
in a function)
domain.c:2149: error: ‘VIR_DOMAIN_BLKIO_DEVICE_WEIGHT’ undeclared here
(not in a function)
domain.c:2149: error: initializer element is not constant
domain.c:2149: error: (near initialization for ‘blkio_allowed[1].name’)
domain.c:2149: error: ‘VIR_TYPED_PARAM_STRING’ undeclared here (not in a
function)
domain.c:2149: error: initializer element is not constant
domain.c:2149: error: (near initialization for ‘blkio_allowed[1].type’)
make: *** [domain.o] Error 1

make failed, exit code 2

Gem files will remain installed in
/usr/local/src/foreman-1.5-stable/vendor/ruby/1.9.1/gems/ruby-libvirt-0.5.2
for inspection.
Results logged to
/usr/local/src/foreman-1.5-stable/vendor/ruby/1.9.1/extensions/x86_64-linux/1.9.1/ruby-libvirt-0.5.2/gem_make.out
An error occurred while installing ruby-libvirt (0.5.2), and Bundler
cannot continue.
Make sure that gem install ruby-libvirt -v '0.5.2' succeeds before
bundling.

Tried gem install ruby-libvirt -v ‘0.5.2’ and no luck. (same error message)

Are there any way to skip this gem coz i don’t need it at all.

Thanks,


jOe


You received this message because you are subscribed to the Google Groups
“Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

> table # bundle install --without mysql2 pg test development --path vendor"
>>
>> add --without libvirt to bundle
>
>
>
It works. Thank you.

··· -- jOe