Installation of GO in fedora 11

39 views
Skip to first unread message

sumit srivastava

unread,
Nov 20, 2009, 12:44:18 PM11/20/09
to glug-...@googlegroups.com, iit...@googlegroups.com
I tried to install GO on Fedora laptop but GOBIN environment variable is creating some problem. I set GOBIN as well as PATH to /bin and got following error,

[root@sumit src]# ./all.bash
installed quietgcc as /bin/quietgcc but 'which quietgcc' fails
double-check that /bin is in your $PATH

guide me.

Regards
Sumit Srivastava

The power of imagination makes us infinite...

Shakthi Kannan

unread,
Nov 20, 2009, 3:03:25 PM11/20/09
to glug-...@googlegroups.com
Hi,

--- On Fri, Nov 20, 2009 at 11:14 PM, sumit srivastava
<sumit.the...@gmail.com> wrote:
| I tried to install GO on Fedora laptop
\--

How? It helps to list the steps and the output, so we know what you did.

---
| but GOBIN environment variable is
| creating some problem. I set GOBIN as well as PATH to /bin and got following
| error,
|
| [root@sumit src]# ./all.bash
\--

1. Why are you working as root?

2. The installation documentation is simple, clear, and asks you to
set it up in your $HOME user:
http://golang.org/doc/install.html

SK

--
Shakthi Kannan
http://www.shakthimaan.com

sumit srivastava

unread,
Nov 23, 2009, 11:42:44 AM11/23/09
to glug-...@googlegroups.com
I tried it both ways, ie, as normal user and root too. It didn't work in either of them. And I followed the exact way it is given in the installation document. But still am not able to figure out the exact problem.


Regards
Sumit Srivastava

The power of imagination makes us infinite...


2009/11/20 Shakthi Kannan <shakt...@gmail.com>

--
"GNU/Linux User Group(GLUG) Meerut" gladly acknowledges your participation for software freedom.

Please feel free to post your discussions and suggestions at "glug-...@googlegroups.com"

For more exciting ways to particpate with your own GLUG, please visit your home for software freedom at "http://groups.google.com/group/glug-meerut?hl=en"

Shakthi Kannan

unread,
Nov 24, 2009, 12:49:40 AM11/24/09
to glug-...@googlegroups.com
Hi,

--- On Mon, Nov 23, 2009 at 10:12 PM, sumit srivastava
<sumit.the...@gmail.com> wrote:
| I tried it both ways,
\--

You are again only stating the problem, but, not giving any steps,
error or output messages that is required for debugging the problem.

'Tried' doesn't say what you did. It would help if you actually list
down what you did, step-by-step, with outputs, for anyone to see what
you actually did.

sumit srivastava

unread,
Nov 30, 2009, 12:26:31 AM11/30/09
to glug-...@googlegroups.com
1} As mentioned at the installation page, my first step was,
export GOROOT=$HOME/go
export GOARCH=386
export GOOS=linux
2) $ hg clone -r release https://go.googlecode.com/hg/ $GOROOT
3)$ su -c 'yum install bison gcc libc6-dev ed make'
Of the above libc-6-dev was not found so I installed glibc which has it.
4)$ cd $GOROOT/src
$ ./all.bash
When I did the above step, received the error I mentioned in my post, i.e.,  

installed quietgcc as /bin/quietgcc but 'which quietgcc' fails 
double-check that /bin is in your $PATH 


Regards
Sumit Srivastava

The power of imagination makes us infinite...


2009/11/24 Shakthi Kannan <shakt...@gmail.com>

Shakthi Kannan

unread,
Nov 30, 2009, 7:46:23 AM11/30/09
to glug-...@googlegroups.com
Hi,

--- On Mon, Nov 30, 2009 at 10:56 AM, sumit srivastava
<sumit.the...@gmail.com> wrote:
| Of the above libc-6-dev was not found so I installed glibc which has it.
\--

<quote>
On Linux,

$ sudo apt-get install bison gcc libc6-dev ed make

(or the equivalent on your Linux distribution).
</quote>

Source: http://golang.org/doc/install.html

On Fedora there is no libc6-dev. Try:

$ sudo yum install glibc-devel

---
| installed quietgcc as /bin/quietgcc but 'which quietgcc' fails
| double-check that /bin is in your $PATH
\--

If you install it in /bin, then you will need to add it to your PATH
environment variable, something like:

$ export PATH=$PATH:/bin

SK

P.S.: Please don't top-post in a mailing list! Please refer some
mailing list guidelines. For a start:
http://www.shakthimaan.com/downloads/glv/presentations/mailing-list-etiquette.pdf
Reply all
Reply to author
Forward
0 new messages