[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: oo-install (hopefully) basic problems



If you rerun the install command, the new package solves this issue.

--Harrison

On Oct 24, 2013, at 16:59 , N. Harrison Ripps <hripps redhat com> wrote:

> Right; you are running the installation on localhost, so have a look at Installer::HostInstance#local_exec!()
> 
> In any case I'm hitting the same problem with a local install on RHEL; I'll post an update soon.
> 
> On Oct 24, 2013, at 16:34 , Troy Dawson <tdawson redhat com> wrote:
> 
>> Hi Harrison,
>> That's probrubly close, but not quite it.
>> Here is the code in lib/installer/assistant.rb
>> ...
>> cmd_result = test_host.exec_on_host!("command -v #{util}")
>> ...
>> 
>> And the function being called in lib/installer/host_instance.rb
>> 
>>   def exec_on_host!(command)
>>     if localhost?
>>       local_exec!(command)
>>     else
>>       ssh_exec!(command)
>>     end
>>   end
>> 
>> 
>> If I remove those quotes, then it just barfs.
>> 
>> 
>> # sh <(curl -s http://oo-install.rhcloud.com/)
>> Checking for necessary tools...
>> ...looks good.
>> Reusing existing installer assets.
>> Extracting oo-install to temporary directory...
>> Starting oo-install...
>> /tmp/oo-install-20131024-1628/bin/oo-install:6:in `require': /tmp/oo-install-20131024-1628/lib/installer/assistant.rb:647: syntax error, unexpected kIF, expecting ')' (SyntaxError)
>>         if not cmd_result[:exit_code] == 0
>>           ^
>> 	from /tmp/oo-install-20131024-1628/bin/oo-install:6
>> oo-install exited; keeping temporary assets in /tmp/
>> 
>> 
>> Troy
>> 
>> On 10/24/2013 03:15 PM, Harrison Ripps wrote:
>>> Okay, somewhere in the installer a system execute call isn't firing
>>> correctly; search on "= %x[" to find it. The right syntax is:
>>> 
>>> foo = %x[command -v #{util}]
>>> 
>>> But for a while I mistakenly had:
>>> 
>>> foo = %x["command -v #{util}"]
>>> 
>>> I thought I cleaned those up today, looks like one got away...
>>> 
>>>> On Oct 24, 2013, at 16:10, Troy Dawson <tdawson redhat com> wrote:
>>>> 
>>>> # command -v yum /usr/bin/yum
>>>> 
>>>>> On 10/24/2013 03:09 PM, Harrison Ripps wrote: Troy-- If you just
>>>>> run 'command -v yum' on that system, what is the output?
>>>>> 
>>>>>> On Oct 24, 2013, at 15:59, Troy Dawson <tdawson redhat com>
>>>>>> wrote:
>>>>>> 
>>>>>> Hi, I'm trying out oo-install on a Scientific Linux 6.4
>>>>>> machine. I know it's not supported, but here is what I did to
>>>>>> get the installer going.
>>>>>> 
>>>>>> export OO_INSTALL_KEEP_ASSETS="true" sh <(curl -s
>>>>>> http://oo-install.rhcloud.com/) # Extract and edit
>>>>>> lib/installer/host_instance.rb and add elsif
>>>>>> type_output[:stdout].match(/^Scientific Linux/) type_result =
>>>>>> :rhel # to the appropriate place.  Then put that back in the
>>>>>> zip file, and do sh <(curl -s http://oo-install.rhcloud.com/)
>>>>>> 
>>>>>> Anyway, when I get to the part where it checks my packages I
>>>>>> get
>>>>>> 
>>>>>> Checking localhost: * Target host is running Red Hat Enterprise
>>>>>> Linux /usr/lib/ruby/1.8/erb.rb:719: command not found: command
>>>>>> -v yum * Could not locate yum... try to `yum install` one of: -
>>>>>> yum-arch-2.2.2-9.el6.noarch - yum-3.2.29-40.el6.noarch -
>>>>>> munin-node-2.0.17-6.el6.noarch ...
>>>>>> 
>>>>>> 
>>>>>> It goes on to fail for all of the packages, yet I have all of
>>>>>> them installed. I'm betting this is some ruby thing I have
>>>>>> missing. Any thoughts. Troy
>>>>>> 
>>>>>> _______________________________________________ users mailing
>>>>>> list users lists openshift redhat com
>>>>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>>> 
>>>> _______________________________________________ users mailing list
>>>> users lists openshift redhat com
>>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>> 
>> _______________________________________________
>> users mailing list
>> users lists openshift redhat com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
> 
> 
> _______________________________________________
> users mailing list
> users lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]