Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninstall to compile / install #2

Open
changchichung opened this issue Dec 12, 2022 · 1 comment
Open

uninstall to compile / install #2

changchichung opened this issue Dec 12, 2022 · 1 comment

Comments

@changchichung
Copy link

go install failed

chc@dc03:~/git/biedatransfer$ go install github.com/alufers/biedatransfer
# github.com/hosom/gomagic
../../go/pkg/mod/github.com/hosom/[email protected]/magic.go:7:10: fatal error: magic.h: No such file or directory
 #include <magic.h>
          ^~~~~~~~~
compilation terminated.

go build also failed

chc@dc03:~/git/biedatransfer$ go build .
go: downloading github.com/ip2location/ip2location-go v8.3.0+incompatible
go: downloading github.com/gin-gonic/gin v1.7.1
go: downloading github.com/c2h5oh/datasize v0.0.0-20200825124411-48ed595a09d2
go: downloading github.com/logrusorgru/aurora v2.0.3+incompatible
go: downloading github.com/hosom/gomagic v0.0.0-20160718182707-cbc00aac97a4
go: downloading github.com/pin/tftp v2.1.0+incompatible
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading github.com/pelletier/go-toml v1.2.0
go: downloading github.com/spf13/afero v1.1.2
go: downloading github.com/spf13/pflag v1.0.3
go: downloading gopkg.in/yaml.v2 v2.2.8
go: downloading golang.org/x/sys v0.0.0-20200116001909-b77594299b42
go: downloading github.com/golang/protobuf v1.3.3
# github.com/hosom/gomagic
../../go/pkg/mod/github.com/hosom/[email protected]/magic.go:7:10: fatal error: magic.h: No such file or directory
 #include <magic.h>
          ^~~~~~~~~
compilation terminated.
@alufers
Copy link
Owner

alufers commented Dec 13, 2022

I think you need to install libmagic, for example:

sudo apt-get install libmagic-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants