D vs nim

Russel Winder via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 22 06:24:28 PDT 2015


On Tue, 2015-04-21 at 09:42 -0700, Parke via Digitalmars-d wrote:
> > 
[…]
> How should I modify the following script to encounter the problems of
> which you speak?
> 
> ----
> 
> unzip -q nim-0.10.2.zip

I think the issue here is that this is the "release" from a while back,
whereas I am trying to build from master/HEAD of the Git repository. I
hypothesize that the problem with building libzip occurred after 10.2.

> cd nim-0.10.2
> sh build.sh > /dev/null
> sh install.sh ../install_dir
> 
> cd ../install_dir
> echo 'echo "Hello, Nim world!"' > hello.nim
> nim/bin/nim c hello.nim
> echo
> ./hello
> 
> ----
> 
> When I run the script on my Ubuntu system, I get the following:
> 
> $ sh -x nim_test.sh
> + unzip -q nim-0.10.2.zip
> + cd nim-0.10.2
> + sh build.sh
> + sh install.sh ../install_dir
> Nim build detected
> copying files...
> installation successful
> + cd ../install_dir
> + echo echo "Hello, Nim world!"
> + nim/bin/nim c hello.nim
> config/nim.cfg(45, 2) Hint: added path: '/home/bake/.babel/pkgs/' [Path]
> config/nim.cfg(46, 2) Hint: added path: '/home/bake/.nimble/pkgs/' [Path]
> Hint: used config file
> '/usr/local/bake/tmp/install_dir/nim/config/nim.cfg' [Conf]
> Hint: system [Processing]
> Hint: hello [Processing]
> CC: hello
> CC: system
> [Linking]
> Hint: operation successful (8753 lines compiled; 1.230 sec total;
> 14.148MB) [SuccessX]
> + echo
> 
> + ./hello
> Hello, Nim world!
-- 
Russel.
=============================================================================
Dr Russel Winder     t:+44 20 7585 2200   voip:sip:
russel.winder at ekiga.net
41 Buckmaster Road   m:+44 7770 465 077   xmpp:russel at winder.org.uk
London SW11 1EN, UK  w: www.russel.org.uk skype:russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150422/852f2de2/attachment.sig>


More information about the Digitalmars-d mailing list