Snap package available for llgo

117 views
Skip to first unread message

Andrew Wilkins

unread,
Aug 25, 2016, 12:51:19 AM8/25/16
to llgo-dev
Hi folks,

I've just published a snap (http://snapcraft.io) package for llgo. If you're running Ubuntu 16.04 x86_64, you should just be able to run:
    snap install llgo
and you'll have llgo installed. If you're on another distro, then refer to the docs at http://snapcraft.io/docs/core/install.

At the moment, the llgo-go command and llgo compiler binaries cannot be used, as they depend on various other bits that aren't yet packaged (gcc, libc-dev, etc.). However, the llgoi REPL works just fine. To use the REPL, execute "llgo.llgoi" after installing the snap. If your $PATH isn't set up to include /snap/bin, then run /snap/bin/llgo.llgoi.

$ llgo.llgoi
(llgo) import "os"
(llgo) os.Getenv("SNAP_DATA")
/var/snap/llgo/1

Cheers,
Andrew

Elliott Stoneham

unread,
Aug 25, 2016, 2:14:24 AM8/25/16
to llgo-dev
Well done Andrew,

This worked really well when I tried it.

I'm looking forward to the full compiler being available this "snappy" way.

Please keep at it  :)


Elliott




gugl.z...@gmail.com

unread,
Aug 25, 2016, 12:47:25 PM8/25/16
to llgo-dev
Congrats! Can't wait for the full compiler in a snap!

massimilia...@gmail.com

unread,
May 5, 2017, 8:47:38 AM5/5/17
to llgo-dev
Hello Andrew,

can you help with llgo installation on Debian testing (x86_64) ?

It's my first attempt at using snaps, and after "apt-get install snapd", I get 'error: cannot install "llgo": snap not found' :

14:35:10 root ~# uname -a
Linux quo 4.9.0-2-amd64 #1 SMP Debian 4.9.13-1 (2017-02-27) x86_64 GNU/Linux

14:35:13 root ~# cat /etc/debian_version
9.0

14:35:22 root ~# snap version
snap 2.21-2+b1
snapd 2.21-2+b1
series 16
debian 9

14:35:40 root ~# snap find llgo
Name Version Developer Notes Summary
llgo 0 axw classic llgo compiler toolchain and interpreter

14:35:47 root ~# snap info llgo
name: llgo
summary: "llgo compiler toolchain and interpreter"
publisher: axw
description: |
This snap provides the llgo compiler toolchain,
as well as the llgoi interpreter. To run the
interpreter, run the command 'llgo.llgoi'.

channels:
stable: 0 (4) 269MB classic
candidate: 0 (4) 269MB classic
beta: 0 (4) 269MB classic
edge: 0 (4) 269MB classic

14:35:52 root ~# snap install llgo
error: cannot install "llgo": snap not found

14:35:57 root ~# snap install llgo --beta
error: cannot install "llgo": snap not found

14:36:00 root ~# snap install llgo --beta --devmode
error: cannot install "llgo": snap not found

Note: I am currently behind a firewall that allows outgoing connections only to TCP ports 80 (http) and 443 (https).

Thanks :)

Massimiliano

Andrew Wilkins

unread,
May 5, 2017, 9:05:22 AM5/5/17
to llgo-dev
Hi Massimiliano,

Things changed a little since my earlier message. It's a "classic" snap now, so you need to pass --classic.

Try "sudo snap install llgo --classic".

Cheers,
Andrew


Thanks :)

Massimiliano

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

Massimiliano Ghilardi

unread,
May 6, 2017, 1:46:15 PM5/6/17
to llgo...@googlegroups.com
On 05/05/2017 03:05 PM, Andrew Wilkins wrote:
>
>
> Hi Massimiliano,
>
> Things changed a little since my earlier message. It's a "classic" snap
> now, so you need to pass --classic.
>
> Try "sudo snap install llgo --classic".
>
> Cheers,
> Andrew

Worked :)

Thanks!

Massimiliano

Reply all
Reply to author
Forward
0 new messages