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?













2















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.










share|improve this question





























    2















    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.










    share|improve this question



























      2












      2








      2








      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.










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 6 at 2:13







      Thufir

















      asked Jan 6 at 2:06









      ThufirThufir

      1,6601044103




      1,6601044103






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I have the same issue trying to install pup.



          Steps you have to follow:





          1. export GOROOT=/usr/bin/go (path found running whereis go)


          2. Go to your GOPATH:



            cd /home/thufir/go
            There you will find a bin folder and inside the pup binary




          3. Copy binary pup to /usr/bin/



            sudo cp pup /usr/bin




          4. Check if pup is correctly installed



            pup --version



            I hope it works.








          share|improve this answer
























            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            0














            I have the same issue trying to install pup.



            Steps you have to follow:





            1. export GOROOT=/usr/bin/go (path found running whereis go)


            2. Go to your GOPATH:



              cd /home/thufir/go
              There you will find a bin folder and inside the pup binary




            3. Copy binary pup to /usr/bin/



              sudo cp pup /usr/bin




            4. Check if pup is correctly installed



              pup --version



              I hope it works.








            share|improve this answer




























              0














              I have the same issue trying to install pup.



              Steps you have to follow:





              1. export GOROOT=/usr/bin/go (path found running whereis go)


              2. Go to your GOPATH:



                cd /home/thufir/go
                There you will find a bin folder and inside the pup binary




              3. Copy binary pup to /usr/bin/



                sudo cp pup /usr/bin




              4. Check if pup is correctly installed



                pup --version



                I hope it works.








              share|improve this answer


























                0












                0








                0







                I have the same issue trying to install pup.



                Steps you have to follow:





                1. export GOROOT=/usr/bin/go (path found running whereis go)


                2. Go to your GOPATH:



                  cd /home/thufir/go
                  There you will find a bin folder and inside the pup binary




                3. Copy binary pup to /usr/bin/



                  sudo cp pup /usr/bin




                4. Check if pup is correctly installed



                  pup --version



                  I hope it works.








                share|improve this answer













                I have the same issue trying to install pup.



                Steps you have to follow:





                1. export GOROOT=/usr/bin/go (path found running whereis go)


                2. Go to your GOPATH:



                  cd /home/thufir/go
                  There you will find a bin folder and inside the pup binary




                3. Copy binary pup to /usr/bin/



                  sudo cp pup /usr/bin




                4. Check if pup is correctly installed



                  pup --version



                  I hope it works.









                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 13 mins ago









                Philippe DelteilPhilippe Delteil

                6041522




                6041522






























                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                    Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                    Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...