~sircmpwn/aerc2#151: 
How to install it on Ubuntu 16.04?

I don't know how to install scdoc so I tried the following:

git clone https://git.sr.ht/~sircmpwn/scdoc
cd scdoc
make
sudo make install

git clone https://git.sr.ht/~sircmpwn/aerc
cd aerc
make

And I see the following:

go build  \
-ldflags "-X main.Prefix=/usr/local" \
-ldflags "-X main.ShareDir=/usr/local/share/aerc" \
-o aerc
aerc.go:13:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands" in any of:
/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands (from $GOROOT)
/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands (from $GOPATH)
aerc.go:14:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands/account" in any of:
/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands/account (from $GOROOT)
/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands/account (from $GOPATH)
aerc.go:15:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands/compose" in any of:
/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands/compose (from $GOROOT)
/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands/compose (from $GOPATH)
aerc.go:16:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands/msg" in any of:
/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands/msg (from $GOROOT)
/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands/msg (from $GOPATH)
aerc.go:17:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands/msgview" in any of:
/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands/msgview (from $GOROOT)
/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands/msgview (from $GOPATH)
aerc.go:18:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands/terminal" in any of:
/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands/terminal (from $GOROOT)
/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands/terminal (from $GOPATH)
aerc.go:19:2: cannot find package "git.sr.ht/~sircmpwn/aerc/config" in any of:
/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/config (from $GOROOT)
/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/config (from $GOPATH)
aerc.go:20:2: cannot find package "git.sr.ht/~sircmpwn/aerc/lib/ui" in any of:
/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/lib/ui (from $GOROOT)
/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/lib/ui (from $GOPATH)
aerc.go:21:2: cannot find package "git.sr.ht/~sircmpwn/aerc/widgets" in any of:
/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/widgets (from $GOROOT)
/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/widgets (from $GOPATH)
Makefile:16: recipe for target 'aerc' failed
make: *** [aerc] Error 1

my guess is I need to locate the scdoc and the aerc folder somewhere specific. maybe somewhere here? ~/go/src/

Thanks!

Status
RESOLVED INVALID
Submitter
~oren
Assigned to
No-one
Submitted
1 year, 3 months ago
Updated
1 year, 3 months ago
Labels
No labels applied.

~yashsriv 1 year, 3 months ago

Hi. So aerc uses Go 1.11 modules for dependency management. The new go modules don't work if you clone a repository under $GOPATH as it assumes it to be the older $GOPATH based dependency management.

In order to compile aerc, either clone to some place outside $GOPATH and compile or you could export GO111MODULE=on and then compile inside the $GOPATH

~yashsriv 1 year, 3 months ago

PS: You need to have go version >= 1.11

~oren 1 year, 3 months ago

Thank you for the information. I apologise but I am newb when it comes to go. Can you provide more detailed Instructions if that's not too time consuming?

On Tue, Jun 4, 2019, 11:41 PM ~yashsriv outgoing@sr.ht wrote:

Hi. So aerc uses Go 1.11 modules for dependency management. The new go modules don't work if you clone a repository under $GOPATH as it assumes it to be the older $GOPATH based dependency management.

In order to compile aerc, either clone to some place outside $GOPATH and compile or you could export GO111MODULE=on and then compile inside the $GOPATH

--

View on the web:

https://todo.sr.ht/~sircmpwn/aerc2/151#comment-2522

~yashsriv 1 year, 3 months ago

You could check if you have the proper go version like this:

$ go version
go version go1.12.4 linux/amd64

The above is the output for my go installation. Its ok as long as you have anything greater than go1.11.0. If you have an older version, please check online as to how to install a newer version of go as I'm not very familiar with the recommended way for ubuntu.

Then, you should clone aerc to any place you want and try a make.

~yashsriv 1 year, 3 months ago

edit: The command is go version. It was a multiline code block which is being rendered on a single line.

~sircmpwn REPORTED INVALID 1 year, 3 months ago

~oren 1 year, 3 months ago

go version

go version go1.8.1 linux/amd64

And now I did the following: (home is not under $GOPATH)

cd ~/
git clone https://git.sr.ht/~sircmpwn/aerc
cd aerc
make

go build  \
	-ldflags "-X main.Prefix=/usr/local" \
	-ldflags "-X main.ShareDir=/usr/local/share/aerc" \
	-o aerc
aerc.go:13:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands (from $GOPATH)
aerc.go:14:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands/account" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands/account (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands/account (from $GOPATH)
aerc.go:15:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands/compose" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands/compose (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands/compose (from $GOPATH)
aerc.go:16:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands/msg" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands/msg (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands/msg (from $GOPATH)
aerc.go:17:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands/msgview" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands/msgview (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands/msgview (from $GOPATH)
aerc.go:18:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands/terminal" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands/terminal (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands/terminal (from $GOPATH)
aerc.go:19:2: cannot find package "git.sr.ht/~sircmpwn/aerc/config" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/config (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/config (from $GOPATH)
aerc.go:20:2: cannot find package "git.sr.ht/~sircmpwn/aerc/lib/ui" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/lib/ui (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/lib/ui (from $GOPATH)
aerc.go:21:2: cannot find package "git.sr.ht/~sircmpwn/aerc/widgets" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/widgets (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/widgets (from $GOPATH)
Makefile:16: recipe for target 'aerc' failed
make: *** [aerc] Error 1

~oren 1 year, 3 months ago

sorry, the markdown is not nice. let me try again:

go version

go version go1.8.1 linux/amd64

And now I did the following: (home is not under $GOPATH)

cd ~/
git clone https://git.sr.ht/~sircmpwn/aerc
cd aerc
make

go build  \
	-ldflags "-X main.Prefix=/usr/local" \
	-ldflags "-X main.ShareDir=/usr/local/share/aerc" \
	-o aerc
aerc.go:13:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands (from $GOPATH)
aerc.go:14:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands/account" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands/account (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands/account (from $GOPATH)
aerc.go:15:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands/compose" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands/compose (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands/compose (from $GOPATH)
aerc.go:16:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands/msg" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands/msg (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands/msg (from $GOPATH)
aerc.go:17:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands/msgview" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands/msgview (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands/msgview (from $GOPATH)
aerc.go:18:2: cannot find package "git.sr.ht/~sircmpwn/aerc/commands/terminal" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/commands/terminal (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/commands/terminal (from $GOPATH)
aerc.go:19:2: cannot find package "git.sr.ht/~sircmpwn/aerc/config" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/config (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/config (from $GOPATH)
aerc.go:20:2: cannot find package "git.sr.ht/~sircmpwn/aerc/lib/ui" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/lib/ui (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/lib/ui (from $GOPATH)
aerc.go:21:2: cannot find package "git.sr.ht/~sircmpwn/aerc/widgets" in any of:
	/usr/local/go/src/git.sr.ht/~sircmpwn/aerc/widgets (from $GOROOT)
	/home/oren/p/go/src/git.sr.ht/~sircmpwn/aerc/widgets (from $GOPATH)
Makefile:16: recipe for target 'aerc' failed
make: *** [aerc] Error 1

~sircmpwn 1 year, 3 months ago

go 1.12 is required.

~oren 1 year, 3 months ago

and also:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.5 LTS
Release:	16.04
Codename:	xenial

$ uname -a
Linux oren 4.4.0-142-generic <a href="/~sircmpwn/aerc2/168" title="~sircmpwn/aerc2#168: Crash on receiving new mail after commit b83e7c9">#168</a>-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

~oren 1 year, 3 months ago

ok. let me try after upgrading go!

~oren 1 year, 3 months ago

Works! Now I get timeout when I try to use it. I tried IMAP over SSL, IMAP with STARTLS, and Insecure IMAP.

  1. I am using it on my laptop. does it mean I have to use the insecure option?
  2. How to debug it? is there any log file I can tail or something else I can do?
  3. Should I create new ticket for this?

Thanks!

~sircmpwn 1 year, 3 months ago

2 -> redirect stdout to a file to enable debug logging

3 -> yes

~oren 1 year, 3 months ago

Register here or Log in to comment, or comment via email.