Hi All,

                Good news… I think I've fixed this...

 

                I decided to attempt to install “deface”on to our 
pseudo-"production" foreman server:


[root@fman-vgrnt-01 vagrant]# *scl enable tfm "gem install deface"*

Fetching: polyglot-0.3.5.gem (100%)

Successfully installed polyglot-0.3.5

Fetching: colorize-0.8.1.gem (100%)

Successfully installed colorize-0.8.1

Fetching: mini_portile2-2.1.0.gem (100%)

Successfully installed mini_portile2-2.1.0

Fetching: nokogiri-1.6.8.1.gem (100%)

Building native extensions.  This could take a while...

ERROR:  Error installing deface:

        ERROR: Failed to build gem native extension.

 

    /opt/rh/rh-ruby22/root/usr/bin/ruby -r 
./siteconf20161120-4146-wy5wdc.rb extconf.rb

mkmf.rb can't find header files for ruby at 
/opt/rh/rh-ruby22/root/usr/share/include/ruby.h

 

extconf failed, exit code 1

 

Gem files will remain installed in 
/opt/rh/rh-ruby22/root/usr/local/share/gems/gems/nokogiri-1.6.8.1 for 
inspection.

Results logged to 
/opt/rh/rh-ruby22/root/usr/local/lib64/gems/ruby/nokogiri-1.6.8.1/gem_make.out

 

So, obviously, I needed to install the relevant “devel” package for the 
rh-ruby-22 software collection so that native extensions could be built. So 
I ran this:

 

[root@fman-vgrnt-01 vagrant]# *yum install rh-ruby22-ruby-devel*

 

                But I got the follow error:

 

http://mirror.centos.org/centos/6/sclo/x86_64/rh/repodata/repomd.xml: 
[Errno 12] Timeout on 
http://mirror.centos.org/centos/6/sclo/x86_64/rh/repodata/repomd.xml: (28, 
'Connection time-out')

Trying other mirror.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: 
centos-sclo-rh. Please verify its path and try again

 

I tried again, and it worked, the centos repo mirror must have been having 
a transient issue! I was then able to install deface and its dependencies:

 

[root@fman-vgrnt-01 vagrant]# *scl enable tfm "gem install deface"*

Building native extensions.  This could take a while...    

Successfully installed nokogiri-1.6.8.1

Fetching: deface-1.0.2.gem (100%)

Successfully installed deface-1.0.2

Parsing documentation for nokogiri-1.6.8.1

Installing ri documentation for nokogiri-1.6.8.1

Parsing documentation for deface-1.0.2

Installing ri documentation for deface-1.0.2

Done installing documentation for nokogiri, deface after 8 seconds

2 gems installed

 

So “deface” appears to be a run-time dependency required by plugins based 
on the foreman plugin example template which, likely, need to be 
incorporated into our foreman provisioning script. 

 

I’m surprised none of the other plugins had the “deface” requirement.

 

Finally, after restarting apache, I was able to login to the foreman server 
and see my plugin’s menu additions.

 

Now plugin development can start in earnest! 

 

Cheers, 

 

Doug


 

 

 

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to