Those instructions are wrong, I've written to the author and asked them to 
remove the incorrect information.

Please follow the installation instructions on the golang.org website, they 
are well tested and known to work well. https://golang.org/doc/install

On Tuesday, 14 February 2017 09:07:54 UTC+11, Sayth Renshaw wrote:
>
> That's the one i used first but got errors that it couldn't find GOPATH 
> even though i installed it to the suggested default location. 
>
> So when that didn't work i delete the go directory and the details from 
> .profile and then followed ://
> www.digitalocean.com/community/tutorials/how-to-install-go-1-6-on-ubuntu-16-04
> .
>
> Not sure why its being difficult. 
>
> Cheers
>
> Sayth 
>
> On Mon, 13 Feb 2017, 11:41 PM Diego Medina <di...@fmpwizard.com 
> <javascript:>> wrote:
>
>> Can you include the link to the guide you followed to install Go?
>>
>> I always follow
>> https://golang.org/doc/install#install
>>
>> which is, after downloading from the link on that page,:
>>
>> tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz
>>
>> and then adding:
>>
>> /usr/local/go/bin to the PATH 
>>
>>
>> And I have never had to set GOBIN
>>
>> Thanks
>>
>> Diego
>>
>>
>>
>> On Mon, Feb 13, 2017 at 5:39 AM, Sayth Renshaw <flebbe...@gmail.com 
>> <javascript:>> wrote:
>>
>>>
>>>
>>> On Sunday, 12 February 2017 04:16:15 UTC+11, Diego Medina wrote:
>>>>
>>>> Hi,
>>>>
>>>> you were very close, instead of
>>>>
>>>> go install github.com/mortalcatalyst/xml/xml.go
>>>>
>>>> do
>>>>
>>>> go install github.com/mortalcatalyst/xml
>>>>
>>>>
>>>> In go, you don't install the particular file, you install the program 
>>>> as a whole (which in many cases, it involves more than one file)
>>>>
>>>> And as a side note, normally you would 
>>>>
>>>> $ cd $GOPATH/src/github.com/mortalcatalyst/xml
>>>> $ go install
>>>>
>>>>
>>>> so you don't have to specify the whole path to the project every time.
>>>>
>>>> Hope that helps
>>>>
>>>> P.S. as you work with Go more and more, you'll want to add these lines 
>>>> to ~/.bash_profile:
>>>>
>>>> CDPATH=.:$GOPATH/src/github.com:$GOPATH/src/bitbucket.org #you may add 
>>>> more domains here if you host your proejct(s) somewhere else
>>>> export CDPATH
>>>>
>>>> that let's you, form anywhere in your terminal, to type:
>>>>
>>>> $ cd mor 
>>>>
>>>> Then press tab and the terminal will autocomplete mortalcatalyst
>>>>
>>>> P.S. source of the tip 
>>>> https://twitter.com/rob_pike/status/467367507305574400
>>>>
>>>> Diego
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>> Hi
>>>
>>> I now seem to have hit another problem  
>>>
>>> sayth@sayth-E6410 ~/work/src/github.com/mortalcatalyst/xml $ go install 
>>> github.com/mortalcatalyst/xml
>>> cannot install, GOBIN must be an absolute path
>>>
>>> An absolute path? I think somehow those directions have created a bad 
>>> install.
>>>
>>> Is there a way I can reset to defaults and is there a better install 
>>> method so that I can get a clean and working environment. Keep running into 
>>> errors and cannot execute code.
>>>
>>> Cheers
>>>
>>> Sayth
>>>
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "golang-nuts" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/golang-nuts/YE0w1Cbb1Ac/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> golang-nuts...@googlegroups.com <javascript:>.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>> Diego Medina
>> Lift/Scala Consultant
>> di...@fmpwizard.com <javascript:>
>> https://blog.fmpwizard.com/
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to