How to install and use pup from golang?How to properly install Go Language in Ubuntu?Updating golang on...
How would I stat a creature to be immune to everything but the Magic Missile spell? (just for fun)
Why do bosons tend to occupy the same state?
Mathematica command that allows it to read my intentions
CAST throwing error when run in stored procedure but not when run as raw query
Would Slavery Reparations be considered Bills of Attainder and hence Illegal?
Plagiarism or not?
Can compressed videos be decoded back to their uncompresed original format?
Is it acceptable for a professor to tell male students to not think that they are smarter than female students?
How badly should I try to prevent a user from XSSing themselves?
How do I gain back my faith in my PhD degree?
What method can I use to design a dungeon difficult enough that the PCs can't make it through without killing them?
ssTTsSTtRrriinInnnnNNNIiinngg
Intersection Puzzle
Short story with a alien planet, government officials must wear exploding medallions
One verb to replace 'be a member of' a club
What are some good books on Machine Learning and AI like Krugman, Wells and Graddy's "Essentials of Economics"
Size of subfigure fitting its content (tikzpicture)
Watching something be piped to a file live with tail
Can my sorcerer use a spellbook only to collect spells and scribe scrolls, not cast?
What do you call someone who asks many questions?
Expand and Contract
Is there a hemisphere-neutral way of specifying a season?
How to prevent "they're falling in love" trope
Little known, relatively unlikely, but scientifically plausible, apocalyptic (or near apocalyptic) events
How to install and use pup from golang?
How to properly install Go Language in Ubuntu?Updating golang on UbuntuHow to install a recent, managed version of golang on Ubuntu 14.04?Where is the golang-1.7 binary?dpkg: error processing archive /var/cache/apt/archives/golang-1.6-go_1.6.2-0ubuntu5~16.04.2_amd64.deb (--unpack):Installation instructions for golang 1.9 into Ubuntu 16.04Error While Installing IBM Watson TTShow to install the golang package on a complete different folder and make it run?How to run the golang script from github in ubuntu installed on vmwareSnapcraft - Build snap using a specific golang versionHow to create snap YAML file of program written in golang sciter library?
I installed go
through snap; now how do I invoke pup
?
thufir@dur:~/pup$
thufir@dur:~/pup$ go get github.com/ericchiang/pup
thufir@dur:~/pup$
thufir@dur:~/pup$ curl "skynet.be/nieuws-sport/weer/mijn-weer?cityId=6450" | pup 'div.tides' >out.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Command 'pup' not found, but there are 17 similar ones.
100 268 100 268 0 0 740 0 --:--:-- --:--:-- --:--:-- 740
(23) Failed writing body
thufir@dur:~/pup$
thufir@dur:~/pup$ cat out.html
thufir@dur:~/pup$
thufir@dur:~/pup$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
thufir@dur:~/pup$
Not sure that it's installed or not, actually:
thufir@dur:~/pup$
thufir@dur:~/pup$ go list
can't load package: package .: no Go files in /home/thufir/pup
thufir@dur:~/pup$
thufir@dur:~/pup$ go version
go version go1.11.4 linux/amd64
thufir@dur:~/pup$
It looks interesting in and of itself. My info is:
thufir@dur:~/pup$
thufir@dur:~/pup$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/thufir/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/thufir/go"
GOPROXY=""
GORACE=""
GOROOT="/snap/go/3095"
GOTMPDIR=""
GOTOOLDIR="/snap/go/3095/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build303962824=/tmp/go-build -gno-record-gcc-switches"
thufir@dur:~/pup$
I tried running pup
from the ~/go/
but got the same result.
software-installation scripts snap html golang
add a comment |
I installed go
through snap; now how do I invoke pup
?
thufir@dur:~/pup$
thufir@dur:~/pup$ go get github.com/ericchiang/pup
thufir@dur:~/pup$
thufir@dur:~/pup$ curl "skynet.be/nieuws-sport/weer/mijn-weer?cityId=6450" | pup 'div.tides' >out.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Command 'pup' not found, but there are 17 similar ones.
100 268 100 268 0 0 740 0 --:--:-- --:--:-- --:--:-- 740
(23) Failed writing body
thufir@dur:~/pup$
thufir@dur:~/pup$ cat out.html
thufir@dur:~/pup$
thufir@dur:~/pup$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
thufir@dur:~/pup$
Not sure that it's installed or not, actually:
thufir@dur:~/pup$
thufir@dur:~/pup$ go list
can't load package: package .: no Go files in /home/thufir/pup
thufir@dur:~/pup$
thufir@dur:~/pup$ go version
go version go1.11.4 linux/amd64
thufir@dur:~/pup$
It looks interesting in and of itself. My info is:
thufir@dur:~/pup$
thufir@dur:~/pup$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/thufir/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/thufir/go"
GOPROXY=""
GORACE=""
GOROOT="/snap/go/3095"
GOTMPDIR=""
GOTOOLDIR="/snap/go/3095/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build303962824=/tmp/go-build -gno-record-gcc-switches"
thufir@dur:~/pup$
I tried running pup
from the ~/go/
but got the same result.
software-installation scripts snap html golang
add a comment |
I installed go
through snap; now how do I invoke pup
?
thufir@dur:~/pup$
thufir@dur:~/pup$ go get github.com/ericchiang/pup
thufir@dur:~/pup$
thufir@dur:~/pup$ curl "skynet.be/nieuws-sport/weer/mijn-weer?cityId=6450" | pup 'div.tides' >out.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Command 'pup' not found, but there are 17 similar ones.
100 268 100 268 0 0 740 0 --:--:-- --:--:-- --:--:-- 740
(23) Failed writing body
thufir@dur:~/pup$
thufir@dur:~/pup$ cat out.html
thufir@dur:~/pup$
thufir@dur:~/pup$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
thufir@dur:~/pup$
Not sure that it's installed or not, actually:
thufir@dur:~/pup$
thufir@dur:~/pup$ go list
can't load package: package .: no Go files in /home/thufir/pup
thufir@dur:~/pup$
thufir@dur:~/pup$ go version
go version go1.11.4 linux/amd64
thufir@dur:~/pup$
It looks interesting in and of itself. My info is:
thufir@dur:~/pup$
thufir@dur:~/pup$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/thufir/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/thufir/go"
GOPROXY=""
GORACE=""
GOROOT="/snap/go/3095"
GOTMPDIR=""
GOTOOLDIR="/snap/go/3095/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build303962824=/tmp/go-build -gno-record-gcc-switches"
thufir@dur:~/pup$
I tried running pup
from the ~/go/
but got the same result.
software-installation scripts snap html golang
I installed go
through snap; now how do I invoke pup
?
thufir@dur:~/pup$
thufir@dur:~/pup$ go get github.com/ericchiang/pup
thufir@dur:~/pup$
thufir@dur:~/pup$ curl "skynet.be/nieuws-sport/weer/mijn-weer?cityId=6450" | pup 'div.tides' >out.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Command 'pup' not found, but there are 17 similar ones.
100 268 100 268 0 0 740 0 --:--:-- --:--:-- --:--:-- 740
(23) Failed writing body
thufir@dur:~/pup$
thufir@dur:~/pup$ cat out.html
thufir@dur:~/pup$
thufir@dur:~/pup$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
thufir@dur:~/pup$
Not sure that it's installed or not, actually:
thufir@dur:~/pup$
thufir@dur:~/pup$ go list
can't load package: package .: no Go files in /home/thufir/pup
thufir@dur:~/pup$
thufir@dur:~/pup$ go version
go version go1.11.4 linux/amd64
thufir@dur:~/pup$
It looks interesting in and of itself. My info is:
thufir@dur:~/pup$
thufir@dur:~/pup$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/thufir/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/thufir/go"
GOPROXY=""
GORACE=""
GOROOT="/snap/go/3095"
GOTMPDIR=""
GOTOOLDIR="/snap/go/3095/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build303962824=/tmp/go-build -gno-record-gcc-switches"
thufir@dur:~/pup$
I tried running pup
from the ~/go/
but got the same result.
software-installation scripts snap html golang
software-installation scripts snap html golang
edited Jan 6 at 2:13
Thufir
asked Jan 6 at 2:06
ThufirThufir
1,6601044103
1,6601044103
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I have the same issue trying to install pup.
Steps you have to follow:
export GOROOT=/usr/bin/go
(path found runningwhereis go
)
Go to your GOPATH:
cd /home/thufir/go
There you will find a bin folder and inside the pup binary
Copy binary pup to /usr/bin/
sudo cp pup /usr/bin
Check if pup is correctly installed
pup --version
I hope it works.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107325%2fhow-to-install-and-use-pup-from-golang%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I have the same issue trying to install pup.
Steps you have to follow:
export GOROOT=/usr/bin/go
(path found runningwhereis go
)
Go to your GOPATH:
cd /home/thufir/go
There you will find a bin folder and inside the pup binary
Copy binary pup to /usr/bin/
sudo cp pup /usr/bin
Check if pup is correctly installed
pup --version
I hope it works.
add a comment |
I have the same issue trying to install pup.
Steps you have to follow:
export GOROOT=/usr/bin/go
(path found runningwhereis go
)
Go to your GOPATH:
cd /home/thufir/go
There you will find a bin folder and inside the pup binary
Copy binary pup to /usr/bin/
sudo cp pup /usr/bin
Check if pup is correctly installed
pup --version
I hope it works.
add a comment |
I have the same issue trying to install pup.
Steps you have to follow:
export GOROOT=/usr/bin/go
(path found runningwhereis go
)
Go to your GOPATH:
cd /home/thufir/go
There you will find a bin folder and inside the pup binary
Copy binary pup to /usr/bin/
sudo cp pup /usr/bin
Check if pup is correctly installed
pup --version
I hope it works.
I have the same issue trying to install pup.
Steps you have to follow:
export GOROOT=/usr/bin/go
(path found runningwhereis go
)
Go to your GOPATH:
cd /home/thufir/go
There you will find a bin folder and inside the pup binary
Copy binary pup to /usr/bin/
sudo cp pup /usr/bin
Check if pup is correctly installed
pup --version
I hope it works.
answered 13 mins ago
Philippe DelteilPhilippe Delteil
6041522
6041522
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107325%2fhow-to-install-and-use-pup-from-golang%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown