Hi Anuruddha,

Thanks. I will try that and see.

Regards,
Dilhasha

Fathima Dilhasha Nazeer <http://lk.linkedin.com/in/dilhasha/>
(M.N.F.Dilhasha)
Undergraduate | Department of Computer Science and Engineering
University of Moratuwa
Sri Lanka

On Tue, Aug 11, 2015 at 6:45 AM, Anuruddha Premalal <[email protected]>
wrote:

> Hi Fathima,
>
> Have you tried adding the binary executable location to system variable
> $PATH?. That way if you issue a command like "appfac createapp", if the
> binary executable is named as appfac system will execute your binary.
>
> Regards,
> Anuruddha.
>
>
>
> On Tue, Aug 11, 2015 at 6:21 AM, Fathima Dilhasha <[email protected]>
> wrote:
>
>>
>> Fathima Dilhasha Nazeer <http://lk.linkedin.com/in/dilhasha/>
>> (M.N.F.Dilhasha)
>> Undergraduate | Department of Computer Science and Engineering
>> University of Moratuwa
>> Sri Lanka
>>
>> ---------- Forwarded message ----------
>> From: Fathima Dilhasha <[email protected]>
>> Date: Tue, Aug 11, 2015 at 6:20 AM
>> Subject: Re: [Dev] Installing a GO CLI app without having GO previously
>> installed
>> To: Deependra Ariyadewa <[email protected]>
>>
>>
>> Hi Deependra,
>>
>> I can get an executable and run the tool. But my requirement is to allow
>> accessing that tool from anywhere of the system ( Sorry, that's what I
>> meant by "install").
>>
>> It requires something more than building the executable right?
>>
>> For example, now to run the CLI tool we need to run it as "./appfac
>> ......" and we should be in the path of the executable.
>> Is there a way we can globally define the path of the executable and get
>> a command "appfac" from anywhere of the system to invoke the tool?
>>
>> Thanks.
>> Regards,
>> Dilhasha
>>
>> Fathima Dilhasha Nazeer <http://lk.linkedin.com/in/dilhasha/>
>> (M.N.F.Dilhasha)
>> Undergraduate | Department of Computer Science and Engineering
>> University of Moratuwa
>> Sri Lanka
>>
>> On Mon, Aug 10, 2015 at 10:08 PM, Deependra Ariyadewa <[email protected]>
>> wrote:
>>
>>>
>>>
>>> On Mon, Aug 10, 2015 at 9:58 PM, Fathima Dilhasha <
>>> [email protected]> wrote:
>>>
>>>> Hi,
>>>>
>>>> If GO is available in a system, the way to install a CLI app is
>>>> available at [1] <https://github.com/codegangsta/cli>. But if I need
>>>> to install a CLI app in a machine which does not have GO already installed,
>>>> how can I do that? Is it by installing GO in to target machine and then
>>>> following the same procedure?
>>>>
>>>
>>> GO compiles source into binary there for you should be able to run the
>>> application without having GO installed in your system.
>>>
>>>>
>>>> For example, how does CloudFoundry CLI [2]
>>>> <https://github.com/cloudfoundry/cli> achieve that?
>>>>
>>>> Any help is highly appreciated.
>>>>
>>>> [1] https://github.com/codegangsta/cli
>>>> [2] https://github.com/cloudfoundry/cli
>>>> <https://github.com/codegangsta/cli>
>>>>
>>>> Thanks.
>>>> Regards,
>>>> Dilhasha
>>>>
>>>> Fathima Dilhasha Nazeer <http://lk.linkedin.com/in/dilhasha/>
>>>> (M.N.F.Dilhasha)
>>>> Undergraduate | Department of Computer Science and Engineering
>>>> University of Moratuwa
>>>> Sri Lanka
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Deependra Ariyadewa
>>> WSO2, Inc. http://wso2.com/ http://wso2.org
>>>
>>> email [email protected]; cell +94 71 403 5996 ;
>>> Blog http://risenfall.wordpress.com/
>>> PGP info: KeyID: 'DC627E6F'
>>>
>>> *WSO2 - Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>
>
> --
> *Anuruddha Premalal*
> Software Eng. | WSO2 Inc.
> Mobile : +94710461070
> Web site : www.regilandvalley.com
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to