Re: [Dev] Installing a GO CLI app without having GO previously installed

2015-08-10 Thread Fathima Dilhasha
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 
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 
> 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 
>> 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 
>>
>>
>> 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 
>> wrote:
>>
>>>
>>>
>>> On Mon, Aug 10, 2015 at 9:58 PM, Fathima Dilhasha <
>>> dilhasha@gmail.com> 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
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Deependra Ariyadewa
>>> WSO2, Inc. http://wso2.com/ http://wso2.org
>>>
>>> email d...@wso2.com; 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
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Installing a GO CLI app without having GO previously installed

2015-08-10 Thread Anuruddha Premalal
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 
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 
> 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 
>
>
> 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 
> wrote:
>
>>
>>
>> On Mon, Aug 10, 2015 at 9:58 PM, Fathima Dilhasha > > 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
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Deependra Ariyadewa
>> WSO2, Inc. http://wso2.com/ http://wso2.org
>>
>> email d...@wso2.com; 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
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Installing a GO CLI app without having GO previously installed

2015-08-10 Thread Deependra Ariyadewa
On Mon, Aug 10, 2015 at 9:58 PM, Fathima Dilhasha 
wrote:

> Hi,
>
> If GO is available in a system, the way to install a CLI app is available
> at [1] . 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]
>  achieve that?
>
> Any help is highly appreciated.
>
> [1] https://github.com/codegangsta/cli
> [2] https://github.com/cloudfoundry/cli
> 
>
> Thanks.
> Regards,
> Dilhasha
>
> Fathima Dilhasha Nazeer 
> (M.N.F.Dilhasha)
> Undergraduate | Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Deependra Ariyadewa
WSO2, Inc. http://wso2.com/ http://wso2.org

email d...@wso2.com; cell +94 71 403 5996 ;
Blog http://risenfall.wordpress.com/
PGP info: KeyID: 'DC627E6F'

*WSO2 - Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Installing a GO CLI app without having GO previously installed

2015-08-10 Thread Fathima Dilhasha
Hi,

If GO is available in a system, the way to install a CLI app is available
at [1] . 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?

For example, how does CloudFoundry CLI [2]
 achieve that?

Any help is highly appreciated.

[1] https://github.com/codegangsta/cli
[2] https://github.com/cloudfoundry/cli


Thanks.
Regards,
Dilhasha

Fathima Dilhasha Nazeer 
(M.N.F.Dilhasha)
Undergraduate | Department of Computer Science and Engineering
University of Moratuwa
Sri Lanka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev