9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] hg and golang
@ 2014-03-25 17:55 Ramakrishnan Muthukrishnan
  2014-03-25 18:02 ` erik quanstrom
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Ramakrishnan Muthukrishnan @ 2014-03-25 17:55 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello 9fans and plan9 hackers,

Number of plan9 installations at my tiny bedroom in a corner in India,
went up from 1 to 2, 1st being a raspberry pi and now, a 9atom
installation on virtualbox that I wanted to mess with, as a cpu
system.

I searched and didn't find a canonical way to install mercurial and
golang on plan9. Can someone point to me some instructions? I see from
the golang build dashboard[1] that golang on plan9 is reasonably
healthy.

[1] http://build.golang.org/
PS: This list is great. Digging up the archives has given me access to
bottomless pit of knowledge and wisdom! Thanks.
--
  Ramakrishnan



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] hg and golang
  2014-03-25 17:55 [9fans] hg and golang Ramakrishnan Muthukrishnan
@ 2014-03-25 18:02 ` erik quanstrom
  2014-03-25 18:32   ` Ramakrishnan Muthukrishnan
  2014-03-25 18:07 ` Skip Tavakkolian
  2014-03-25 22:28 ` David du Colombier
  2 siblings, 1 reply; 14+ messages in thread
From: erik quanstrom @ 2014-03-25 18:02 UTC (permalink / raw)
  To: 9fans

> Number of plan9 installations at my tiny bedroom in a corner in India,
> went up from 1 to 2, 1st being a raspberry pi and now, a 9atom
> installation on virtualbox that I wanted to mess with, as a cpu
> system.

hopefully i've got this correct.  rc history to the rescue
python may or may not work on the standard distribution.  there are some
ape patches that have not gone in yet.

	cd /sys/src
	hget https://bitbucket.org/jas/cpython/get/2.7-plan9.tar.bz2 |bunzip2|tar xv
	hget http://selenic.com/hg/archive/b96cb15ec9e0.tar.bz2 |bunzip2|tar xv
	rm -f @LongLink
	mv jas-cpython-cea9c7fcee30 cpython	# details may vary
	mv Mercurial-b96cb15ec9e0 hg		# details may vary
	cd cpython
	mk
	mk stage
	mk install

python has some odd troubles with its mkfile, so you might need to mk stage
more than once.

- erik



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] hg and golang
  2014-03-25 17:55 [9fans] hg and golang Ramakrishnan Muthukrishnan
  2014-03-25 18:02 ` erik quanstrom
@ 2014-03-25 18:07 ` Skip Tavakkolian
  2014-03-25 22:28 ` David du Colombier
  2 siblings, 0 replies; 14+ messages in thread
From: Skip Tavakkolian @ 2014-03-25 18:07 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 980 bytes --]

hg and python you need are on sources.
% 9fs sources
% cd /n/sources/contrib/jas

there is a compiled version here:
http://www.9legacy.org/download.html

after that 'hg clone' the sources for Go, etc.



On Tue, Mar 25, 2014 at 10:55 AM, Ramakrishnan Muthukrishnan <
vu3rdd@gmail.com> wrote:

> Hello 9fans and plan9 hackers,
>
> Number of plan9 installations at my tiny bedroom in a corner in India,
> went up from 1 to 2, 1st being a raspberry pi and now, a 9atom
> installation on virtualbox that I wanted to mess with, as a cpu
> system.
>
> I searched and didn't find a canonical way to install mercurial and
> golang on plan9. Can someone point to me some instructions? I see from
> the golang build dashboard[1] that golang on plan9 is reasonably
> healthy.
>
> [1] http://build.golang.org/
> PS: This list is great. Digging up the archives has given me access to
> bottomless pit of knowledge and wisdom! Thanks.
> --
>   Ramakrishnan
>
>

[-- Attachment #2: Type: text/html, Size: 2002 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] hg and golang
  2014-03-25 18:02 ` erik quanstrom
@ 2014-03-25 18:32   ` Ramakrishnan Muthukrishnan
  2014-03-25 18:35     ` erik quanstrom
  0 siblings, 1 reply; 14+ messages in thread
From: Ramakrishnan Muthukrishnan @ 2014-03-25 18:32 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Tue, Mar 25, 2014 at 11:32 PM, erik quanstrom <quanstro@quanstro.net> wrote:
>> Number of plan9 installations at my tiny bedroom in a corner in India,
>> went up from 1 to 2, 1st being a raspberry pi and now, a 9atom
>> installation on virtualbox that I wanted to mess with, as a cpu
>> system.
>
> hopefully i've got this correct.  rc history to the rescue
> python may or may not work on the standard distribution.  there are some
> ape patches that have not gone in yet.
>
>         cd /sys/src
>         hget https://bitbucket.org/jas/cpython/get/2.7-plan9.tar.bz2 |bunzip2|tar xv
>         hget http://selenic.com/hg/archive/b96cb15ec9e0.tar.bz2 |bunzip2|tar xv
>         rm -f @LongLink
>         mv jas-cpython-cea9c7fcee30 cpython     # details may vary
>         mv Mercurial-b96cb15ec9e0 hg            # details may vary
>         cd cpython
>         mk

Thank you Erik.

I got an out of physical memory at this point, while in the middle of
the build. I will try increasing the memory (I am running on a
virtualbox instance)

>         mk stage
>         mk install
>
> python has some odd troubles with its mkfile, so you might need to mk stage
> more than once.
>
> - erik
>



--
  Ramakrishnan



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] hg and golang
  2014-03-25 18:32   ` Ramakrishnan Muthukrishnan
@ 2014-03-25 18:35     ` erik quanstrom
  2014-03-26  0:04       ` Ramakrishnan Muthukrishnan
  0 siblings, 1 reply; 14+ messages in thread
From: erik quanstrom @ 2014-03-25 18:35 UTC (permalink / raw)
  To: 9fans

> Thank you Erik.
>
> I got an out of physical memory at this point, while in the middle of
> the build. I will try increasing the memory (I am running on a
> virtualbox instance)

that's kind of odd.  how much memory are you using, and can you send a screenshot?

- erik



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] hg and golang
  2014-03-25 17:55 [9fans] hg and golang Ramakrishnan Muthukrishnan
  2014-03-25 18:02 ` erik quanstrom
  2014-03-25 18:07 ` Skip Tavakkolian
@ 2014-03-25 22:28 ` David du Colombier
  2014-03-26  1:23   ` Ramakrishnan Muthukrishnan
  2 siblings, 1 reply; 14+ messages in thread
From: David du Colombier @ 2014-03-25 22:28 UTC (permalink / raw)
  To: 9fans

> I searched and didn't find a canonical way to install mercurial and
> golang on plan9. Can someone point to me some instructions? I see from
> the golang build dashboard[1] that golang on plan9 is reasonably
> healthy.

As Skip said, Python 2.7.6 and Mercurial 2.8.2 are available
as a binary package on http://www.9legacy.org/download.html.

If you want to compile from sources, you will need to
get the APE changes from Jeff Sickel. If you are running
Plan 9 from Bell Labs, you can apply the following patch:

http://www.9legacy.org/9legacy/patch/ape-jas.diff

Here is an excerpt from my notes to compile Python on Plan 9:

# clone the repositories from Unix

hg clone -r 2.8.2 http://selenic.com/hg
hg clone -b 2.7-plan9 https://bitbucket.org/jas/cpython

# copy the directories to Plan 9

mkdir /sys/src/cmd/cpython
dircp /mnt/term/home/djc/tmp/cpython /sys/src/cmd/cpython

mkdir /sys/src/cmd/hg
dircp /mnt/term/home/djc/tmp/hg /sys/src/cmd/hg

# get the ape changes from Jeff Sickel

hget http://www.9legacy.org/9legacy/patch/ape-jas.diff | ape/patch -p0

# build ape

cd /sys/src/ape && mk nuke && mk install && mk clean

# build python

cd /sys/src/cmd/cpython
mk stage
mk install

# archive

disk/mkfs -a -s dist /sys/lib/sysconfig/proto/allproto > /tmp/cpython.mkfs

# extract

disk/mkext -d / < /tmp/cpython.mkfs

--
David du Colombier



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] hg and golang
  2014-03-25 18:35     ` erik quanstrom
@ 2014-03-26  0:04       ` Ramakrishnan Muthukrishnan
  2014-03-26  0:27         ` Jeff Sickel
  0 siblings, 1 reply; 14+ messages in thread
From: Ramakrishnan Muthukrishnan @ 2014-03-26  0:04 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 634 bytes --]

On Wed, Mar 26, 2014 at 12:05 AM, erik quanstrom <quanstro@quanstro.net> wrote:
>> Thank you Erik.
>>
>> I got an out of physical memory at this point, while in the middle of
>> the build. I will try increasing the memory (I am running on a
>> virtualbox instance)
>
> that's kind of odd.  how much memory are you using, and can you send a screenshot?

I only had 64MB, sorry, my mistake.. I increased it to 1024MB and it
compiled but I get mk stage errors. I will look at Skip's and David's
instructions to apply the APE patch and try again.

Attaching the screenshot for the out of memory error.

--
  Ramakrishnan

[-- Attachment #2: Screen Shot 2014-03-26 at 5.25.50 am.png --]
[-- Type: image/png, Size: 113476 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] hg and golang
  2014-03-26  0:04       ` Ramakrishnan Muthukrishnan
@ 2014-03-26  0:27         ` Jeff Sickel
  2014-03-26  1:25           ` Ramakrishnan Muthukrishnan
  0 siblings, 1 reply; 14+ messages in thread
From: Jeff Sickel @ 2014-03-26  0:27 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Ramakrishnan,

Let me know if you’re still getting mk stage errors.

You should be able to use the latest hg (2.9.1) if you grab the source release (http://mercurial.selenic.com/release/mercurial-2.9.1.tar.gz).  Just note that the following patch-diff has never been accepted for some reason.

-jas


% hg diff
diff -r ca387377df7a setup.py
--- a/setup.py	Wed Jan 01 21:46:03 2014 -0600
+++ b/setup.py	Thu Jan 02 19:47:36 2014 -0600
@@ -129,7 +129,7 @@
    py2exeloaded = False

def runcmd(cmd, env):
-    if sys.platform == 'plan9':
+    if sys.platform == 'plan9' and (sys.version_info[0] == 2 and sys.version_info[1] < 7):
        # subprocess kludge to work around issues in half-baked Python
        # ports, notably bichued/python:
        _, out, err = os.popen3(cmd)




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] hg and golang
  2014-03-25 22:28 ` David du Colombier
@ 2014-03-26  1:23   ` Ramakrishnan Muthukrishnan
  2014-03-26 20:13     ` David du Colombier
  0 siblings, 1 reply; 14+ messages in thread
From: Ramakrishnan Muthukrishnan @ 2014-03-26  1:23 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wed, Mar 26, 2014 at 3:58 AM, David du Colombier <0intro@gmail.com> wrote:
>> I searched and didn't find a canonical way to install mercurial and
>> golang on plan9. Can someone point to me some instructions? I see from
>> the golang build dashboard[1] that golang on plan9 is reasonably
>> healthy.
>
> As Skip said, Python 2.7.6 and Mercurial 2.8.2 are available
> as a binary package on http://www.9legacy.org/download.html.
>
> If you want to compile from sources, you will need to
> get the APE changes from Jeff Sickel. If you are running
> Plan 9 from Bell Labs, you can apply the following patch:
>
> http://www.9legacy.org/9legacy/patch/ape-jas.diff
>
> Here is an excerpt from my notes to compile Python on Plan 9:

[...]

Hello David,

That worked perfectly! Thanks. I compiled python from sources. I now
have a working Python and Mercurial installation. Now, on to compiling
Go.

Thank you again, to everyone.
--
  Ramakrishnan



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] hg and golang
  2014-03-26  0:27         ` Jeff Sickel
@ 2014-03-26  1:25           ` Ramakrishnan Muthukrishnan
  0 siblings, 0 replies; 14+ messages in thread
From: Ramakrishnan Muthukrishnan @ 2014-03-26  1:25 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wed, Mar 26, 2014 at 5:57 AM, Jeff Sickel <jas@corpus-callosum.com> wrote:
> Ramakrishnan,
>
> Let me know if you’re still getting mk stage errors.
>
> You should be able to use the latest hg (2.9.1) if you grab the source release (http://mercurial.selenic.com/release/mercurial-2.9.1.tar.gz).  Just note that the following patch-diff has never been accepted for some reason.

Thank you Jeff. I have now got a working hg installation! :) Thanks a lot.

Quite pleased with what I have got today and managed to learn some new
things about the system.

Ramakrishnan



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] hg and golang
  2014-03-26  1:23   ` Ramakrishnan Muthukrishnan
@ 2014-03-26 20:13     ` David du Colombier
  0 siblings, 0 replies; 14+ messages in thread
From: David du Colombier @ 2014-03-26 20:13 UTC (permalink / raw)
  To: 9fans

By the way, I've just updated the binary package to Mercurial 2.9.1.

http://www.9legacy.org/download.html

--
David du Colombier



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] hg and golang
@ 2014-03-26  2:10 Erik Quanstrom
  0 siblings, 0 replies; 14+ messages in thread
From: Erik Quanstrom @ 2014-03-26  2:10 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

no need to recreate.

- erik


Ramakrishnan Muthukrishnan <vu3rdd@gmail.com> wrote:

>On Wed, Mar 26, 2014 at 6:04 AM, Erik Quanstrom <quanstro@quanstro.net> wrote:
>> what build error did you get.  do you mind sending it along?  perhaps it as caused by truncated intermediates.
>
>Sure, I need to rush now for work, I will reduce the memory back to
>64MB once I get back to work and send you the errors I see.
>
>Thanks
>Ramakrishnan
>
>> Ramakrishnan Muthukrishnan <vu3rdd@gmail.com> wrote:
>>
>>>On Wed, Mar 26, 2014 at 12:05 AM, erik quanstrom <quanstro@quanstro.net> wrote:
>>>>> Thank you Erik.
>>>>>
>>>>> I got an out of physical memory at this point, while in the middle of
>>>>> the build. I will try increasing the memory (I am running on a
>>>>> virtualbox instance)
>>>>
>>>> that's kind of odd.  how much memory are you using, and can you send a screenshot?
>>>
>>>I only had 64MB, sorry, my mistake.. I increased it to 1024MB and it
>>>compiled but I get mk stage errors. I will look at Skip's and David's
>>>instructions to apply the APE patch and try again.
>>>
>>>Attaching the screenshot for the out of memory error.
>>>
>>>--
>>>  Ramakrishnan
>
>
>
>-- 
>  Ramakrishnan
>
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] hg and golang
  2014-03-26  0:34 Erik Quanstrom
@ 2014-03-26  1:28 ` Ramakrishnan Muthukrishnan
  0 siblings, 0 replies; 14+ messages in thread
From: Ramakrishnan Muthukrishnan @ 2014-03-26  1:28 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wed, Mar 26, 2014 at 6:04 AM, Erik Quanstrom <quanstro@quanstro.net> wrote:
> what build error did you get.  do you mind sending it along?  perhaps it as caused by truncated intermediates.

Sure, I need to rush now for work, I will reduce the memory back to
64MB once I get back to work and send you the errors I see.

Thanks
Ramakrishnan

> Ramakrishnan Muthukrishnan <vu3rdd@gmail.com> wrote:
>
>>On Wed, Mar 26, 2014 at 12:05 AM, erik quanstrom <quanstro@quanstro.net> wrote:
>>>> Thank you Erik.
>>>>
>>>> I got an out of physical memory at this point, while in the middle of
>>>> the build. I will try increasing the memory (I am running on a
>>>> virtualbox instance)
>>>
>>> that's kind of odd.  how much memory are you using, and can you send a screenshot?
>>
>>I only had 64MB, sorry, my mistake.. I increased it to 1024MB and it
>>compiled but I get mk stage errors. I will look at Skip's and David's
>>instructions to apply the APE patch and try again.
>>
>>Attaching the screenshot for the out of memory error.
>>
>>--
>>  Ramakrishnan



--
  Ramakrishnan



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] hg and golang
@ 2014-03-26  0:34 Erik Quanstrom
  2014-03-26  1:28 ` Ramakrishnan Muthukrishnan
  0 siblings, 1 reply; 14+ messages in thread
From: Erik Quanstrom @ 2014-03-26  0:34 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

what build error did you get.  do you mind sending it along?  perhaps it as caused by truncated intermediates.  

- erik


Ramakrishnan Muthukrishnan <vu3rdd@gmail.com> wrote:

>On Wed, Mar 26, 2014 at 12:05 AM, erik quanstrom <quanstro@quanstro.net> wrote:
>>> Thank you Erik.
>>>
>>> I got an out of physical memory at this point, while in the middle of
>>> the build. I will try increasing the memory (I am running on a
>>> virtualbox instance)
>>
>> that's kind of odd.  how much memory are you using, and can you send a screenshot?
>
>I only had 64MB, sorry, my mistake.. I increased it to 1024MB and it
>compiled but I get mk stage errors. I will look at Skip's and David's
>instructions to apply the APE patch and try again.
>
>Attaching the screenshot for the out of memory error.
>
>-- 
>  Ramakrishnan

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-03-26 20:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-25 17:55 [9fans] hg and golang Ramakrishnan Muthukrishnan
2014-03-25 18:02 ` erik quanstrom
2014-03-25 18:32   ` Ramakrishnan Muthukrishnan
2014-03-25 18:35     ` erik quanstrom
2014-03-26  0:04       ` Ramakrishnan Muthukrishnan
2014-03-26  0:27         ` Jeff Sickel
2014-03-26  1:25           ` Ramakrishnan Muthukrishnan
2014-03-25 18:07 ` Skip Tavakkolian
2014-03-25 22:28 ` David du Colombier
2014-03-26  1:23   ` Ramakrishnan Muthukrishnan
2014-03-26 20:13     ` David du Colombier
2014-03-26  0:34 Erik Quanstrom
2014-03-26  1:28 ` Ramakrishnan Muthukrishnan
2014-03-26  2:10 Erik Quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).