Giter Site home page Giter Site logo

support Apple Silicon (M1) about png2svg HOT 4 CLOSED

xyproto avatar xyproto commented on June 12, 2024
support Apple Silicon (M1)

from png2svg.

Comments (4)

xyproto avatar xyproto commented on June 12, 2024

Thanks for reporting.

I don't have an M1 to test on, unfortunately.

Does it work with the latest version of the Go compiler, version 1.18?

from png2svg.

vesper8 avatar vesper8 commented on June 12, 2024

I'm on an M1 and I just installed go using brew

When I run go install github.com/xyproto/png2svg/cmd/png2svg@latest

I get

go: downloading github.com/xyproto/png2svg v1.5.2
go: downloading github.com/xyproto/tinysvg v1.0.1

Is it supposed to say more than this? It doesn't seem to have installed it. It's certainly not in my path and I can't run it. Maybe I need to add go to my path first?

from png2svg.

vesper8 avatar vesper8 commented on June 12, 2024

Got it to work.. it was just a path issue. Here are the full steps I did

mkdir -p $HOME/go/{bin,src,pkg}

# add the following 3 lines to your .bashrc / .zshrc
export GOPATH=$HOME/go
export GOROOT="$(brew --prefix golang)/libexec"
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"

# install go
brew install golang

#install png2svg
go install github.com/xyproto/png2svg/cmd/png2svg@latest

Open a new tab, or source your .bashrc/.zshrc

Then png2svg will work

from png2svg.

xyproto avatar xyproto commented on June 12, 2024

Thanks for testing.

Yes, it's part of the setup of the Go compiler on macOS/Homebrew. On Linux, none of the above is needed.

Oh, and GOPATH is ~/go by default, so there should be no need to set it to $HOME/go.

I'll consider adding a note about macOS/Homebrew to the README, even though it's not specific to this project.

I'm glad it's working on M1!

from png2svg.

Related Issues (6)

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.