Giter Club home page Giter Club logo

Comments (14)

reardenlife avatar reardenlife commented on August 18, 2024
[root@v48807 go]# ls /root/go/src/gx/ipfs/QmTG23dvpBCBjqQwyDxV8CQT6jmS4PSftNr1VqHhE3MLy7/go-log/
total 88
drwxr-xr-x 3 root root 4096 Mar  5 04:29 .                                                drwxr-xr-x 3 root root 4096 Mar  4 05:37 ..
-rw-r--r-- 1 root root  986 Mar  4 05:37 context.go
-rw-r--r-- 1 root root  771 Mar  4 05:37 context_test.go
-rw-r--r-- 1 root root   93 Mar  4 05:37 entry.go
-rw-r--r-- 1 root root  296 Mar  4 05:37 example_test.go
drwxr-xr-x 2 root root 4096 Mar  5 04:29 .gx
-rw-r--r-- 1 root root 1083 Mar  4 05:37 LICENSE
-rw-r--r-- 1 root root 1086 Mar  4 05:37 loggable.go
-rw-r--r-- 1 root root 7074 Mar  5 04:29 log.go
-rw-r--r-- 1 root root 1860 Mar  4 05:37 metadata.go
-rw-r--r-- 1 root root  838 Mar  4 05:37 metadata_test.go
-rw-r--r-- 1 root root 2737 Mar  5 04:29 oldlog.go
-rw-r--r-- 1 root root 1321 Mar  5 04:29 option.go                                        -rw-r--r-- 1 root root  712 Mar  4 05:37 package.json
-rw-r--r-- 1 root root  730 Mar  5 04:29 polite_json_formatter.go                         -rw-r--r-- 1 root root 3002 Mar  4 05:37 README.md
-rw-r--r-- 1 root root  183 Mar  4 05:37 .travis.yml                                      -rw-r--r-- 1 root root 5243 Mar  4 05:37 writer.go
-rw-r--r-- 1 root root 2754 Mar  4 05:37 writer_test.go
[
[root@v48807 ~]#

There are suppose to be a compiled file or what?

from ipfs-crawl.

vyzo avatar vyzo commented on August 18, 2024

You need to gx install the packages first:
gx --verbose install --global

from ipfs-crawl.

vyzo avatar vyzo commented on August 18, 2024

hrm, the Makefile does that already. I wonder whether the package has disappeared.

from ipfs-crawl.

reardenlife avatar reardenlife commented on August 18, 2024

But gx is already installed globally:

[root@v48807 ipfs-crawl]# which gx
/root/go/bin/gx
[root@v48807 ipfs-crawl]# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/root/.local/bin:/root/go/bin:/usr/lib/golang/bin:/usr/java/default/bin:/opt/android-sdk/tools/bin:/opt/android-sdk/build-tools/28.0.3:/opt/gradle/gradle-5.1.1/bin
[
[root@v48807 ~]#

from ipfs-crawl.

reardenlife avatar reardenlife commented on August 18, 2024

It was installed from the different place initially:

[root@v48807 ~]# locate --regex bin.*/gx$
/root/go/bin/gx
/root/go/src/github.com/ipfs/go-ipfs/bin/gx

I cant figure out why your installer seems to expect to find the binary at the different place. Hm.

Or it is just my environment variables configured incorrectly?

[root@v48807 ~]# echo $GOPATH
/root/go
[root@v48807 ~]# echo $GOROOT
/usr/lib/golang

from ipfs-crawl.

vyzo avatar vyzo commented on August 18, 2024

what is your GOPATH?

from ipfs-crawl.

reardenlife avatar reardenlife commented on August 18, 2024

@vyzo

what is your GOPATH?

As I pointed out above, its /root/go

from ipfs-crawl.

vyzo avatar vyzo commented on August 18, 2024

Hard to tell what's going on. It works for me locally, but maybe that's because I have the offending package cached.

from ipfs-crawl.

reardenlife avatar reardenlife commented on August 18, 2024

@vyzo
I would be nice to understand what is going on.

I will patch it up with a symbolic link for now:

[root@v48807 ipfs-crawl]# locate --regexp go.*/writer$
/root/go/pkg/mod/github.com/ipfs/[email protected]/writer
/root/go/src/github.com/ipfs/go-log/writer
/root/go/src/gx/ipfs/QmNuLxhqRhfimRZeLttPe6Sa44MNwuHAdaFFa9TDuNZUmf/ginkgo/internal/writer
/root/go/src/gx/ipfs/QmcuXC5cxs79ro2cUuHs4HQ2bkDLJUYokwL8aivcX6HW3C/go-log/writer
[root@v48807 ipfs-crawl]# ln -s /root/go/src/gx/ipfs/QmcuXC5cxs79ro2cUuHs4HQ2bkDLJUYokwL8aivcX6HW3C/go-log/writer /root/go/src/gx/ipfs/QmTG23dvpBCBjqQwyDxV8CQT6jmS4PSftNr1VqHhE3MLy7/go-log/writer

from ipfs-crawl.

HaseebLUMS avatar HaseebLUMS commented on August 18, 2024

@vyzo
Any solution to this problem?

from ipfs-crawl.

vyzo avatar vyzo commented on August 18, 2024

I think the right solution is to make the crawler gomod aware and drop the Makefile altogether!
Care for a patch?

from ipfs-crawl.

HaseebLUMS avatar HaseebLUMS commented on August 18, 2024

Yeah, please give a patch. I will be very thankful.

from ipfs-crawl.

vyzo avatar vyzo commented on August 18, 2024

I was asking whether you wanted to make a patch :)

from ipfs-crawl.

HaseebLUMS avatar HaseebLUMS commented on August 18, 2024

Oh okay, I will look into this and get back to you.

from ipfs-crawl.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.