Giter VIP home page Giter VIP logo

Comments (5)

majewsky avatar majewsky commented on August 15, 2024

Does the following command work for you?

install -d -m 0755 /usr/local/bin

from gofu.

talal avatar talal commented on August 15, 2024

the flag error is gone but I get this:

$ make install
GOPATH=/Users/talal/x/src/github.com/majewsky/gofu/.gopath GOBIN=/Users/talal/x/src/github.com/majewsky/gofu/build go install  -ldflags '-s -w' 'github.com/majewsky/gofu'
install -d -m 0755 "/usr/local/bin"
for APPLET in i3status rtree prettyprompt; do ln -s gofu "/usr/bin/${APPLET}"; done
ln: /usr/bin/i3status: Operation not permitted
ln: /usr/bin/rtree: Operation not permitted
ln: /usr/bin/prettyprompt: Operation not permitted
make: *** [install] Error 1

Changing the install force section to the following works:

install: FORCE all
	install -d -m 0755 "/usr/local/bin"
	for APPLET in $(APPLETS); do ln -s gofu "/usr/local/bin/$${APPLET}"; done

from gofu.

talal avatar talal commented on August 15, 2024

Edit: after a quick make install --help, I found that on macOS the directory flag is -C 🤦‍♂️

So changing the flag to -C and the PREFIX at the top to /usr/local works, no additional changes required.

This change also passes the git to bit test :double facepalm:

from gofu.

majewsky avatar majewsky commented on August 15, 2024

install as in install -D -m 0755 ... is not the same as install in make install.

install the command is /usr/bin/install (manpage for the GNU version). install in a make invocation is a Makefile target.

I committed a fix; it should work for you with commit 5d966f1 if you do make install PREFIX=/usr/local.

from gofu.

talal avatar talal commented on August 15, 2024

Thank you, works as intended 😄

from gofu.

Related Issues (5)

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.