Code Monkey home page Code Monkey logo

Comments (9)

sayanarijit avatar sayanarijit commented on June 17, 2024

Hi, make sure you have the latest gnu core utils installed.

from xplr.

sayanarijit avatar sayanarijit commented on June 17, 2024

Else this line will fail:

xplr/src/init.lua

Line 1554 in 59279b8

mkdir -p -- "$(dirname $(realpath -m $PTH))" \

from xplr.

EthanWng97 avatar EthanWng97 commented on June 17, 2024

Hi, make sure you have the latest gnu core utils installed.

I installed the latest coreutils via homebrew, which is mentioned on the manual page. Should I debug or do something else?

from xplr.

EthanWng97 avatar EthanWng97 commented on June 17, 2024

image

from xplr.

EthanWng97 avatar EthanWng97 commented on June 17, 2024

btw, I check the path of realpath and stackoverflow, macOS has builtin realpath.

from xplr.

sayanarijit avatar sayanarijit commented on June 17, 2024

Mac's built-in realpath is outdated. You need to set the PATH variable in your .bashrc or .zshrc after installing the latest coreutils. Follow the message after (re)installing coreutils.

from xplr.

EthanWng97 avatar EthanWng97 commented on June 17, 2024

after installing, homebrew said

Commands also provided by macOS and the commands dir, dircolors, vdir have been installed with the prefix "g".
If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH with:
  PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"

so currently macOS users could use grealpath instead of realpath to execute the commands.

image

could we make softlink for realpath or make pr to modify commands in rust file.

from xplr.

sayanarijit avatar sayanarijit commented on June 17, 2024

The best way is to add export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH" in your .bashrc or .zshrc.

To create the softlinks, you'll need to replace the built-in commands which could break macos. Modifying the commands to add prefix g isn't a good way, since it will break on Linux, while the issue is caused by outdated macos binaries. One thing we can do is, if the realpath command fails, fall back to just touch.

from xplr.

EthanWng97 avatar EthanWng97 commented on June 17, 2024

problem solved! thanks!

from xplr.

Related Issues (20)

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.