GithubHelp home page GithubHelp logo

Comments (12)

miraclx avatar miraclx commented on May 12, 2024 1

The command is export PATH="$PATH:/Users/matteog24/freyr-js/freyr-js/bins/posix/AtomicParsley", right? I tried using the last 2 methods, but the terminal says zsh: permission denied, even after performing a chmod +x

Actually no, what you should include in your path is the directory where AtomicParsley is, which in this case, considering the path you gave, should be

export PATH="$PATH:/Users/matteog24/freyr-js/freyr-js/bins/posix"

from freyr-js.

miraclx avatar miraclx commented on May 12, 2024 1

And, congrats on your first issue! 🎉

from freyr-js.

miraclx avatar miraclx commented on May 12, 2024

Let me try reproducing this, in the meantime you can try adding that directory to your PATH.

export PATH="$PATH:{project_dir}/bins/posix/AtomicParsley"

Replacing {project_dir} with the absolute path to the project

Or simply just run this (if the freyr command is available in your path)

export PATH="$PATH:$(dirname $(realpath $(which freyr)))/bins/posix"

EDIT:

I just realized macOS doesn't by default have the realpath command so the above shortcut might not work

You can either install coreutils with brew or use this instead

export PATH="$PATH:$(dirname $(python -c "import os;print(os.path.realpath('$(which freyr)'))"))/bins/posix"

from freyr-js.

miraclx avatar miraclx commented on May 12, 2024

Also, please ensure you can run the AtomicParsley binary manually.

I mean, try cd into that bins/posix folder and run ./AtomicParsley.

Maybe it's not set to be executable or there's an issue with the file.

If it runs fine, then it's an issue with discoverability on freyr's part (hint: it was)

from freyr-js.

miraclx avatar miraclx commented on May 12, 2024

Fixed on #37.

freyr's local path resolution was all sorts of wrong in the weirdest way (for clarity, it was checking bins/posix in the current directory, instead of the project directory).

Should be good now.

EDIT: merged into master, you can go ahead to update.

from freyr-js.

matteog24 avatar matteog24 commented on May 12, 2024

Thanks! I tried again after updating, but it doesn't work (because I don't know much about programming...), just to be sure: where can the PATH be added? Is it okay from the terminal within the project directory?

The command is export PATH="$PATH:/Users/matteog24/freyr-js/freyr-js/bins/posix/AtomicParsley", right? I tried using the last 2 methods, but the terminal says zsh: permission denied, even after performing a chmod +x

from freyr-js.

miraclx avatar miraclx commented on May 12, 2024

After the update, it doesn't need the PATH to be set

Just having it in the bins/posix folder should do fine

For me to know the appropriate paths for your system, please include the outputs of the following commands

  • ls /Users/matteog24/freyr-js
  • echo $(dirname $(python -c "import os;print(os.path.realpath('$(which freyr)'))"))
  • file /Users/matteog24/freyr-js/freyr-js/bins/posix/AtomicParsley
  • file /Users/matteog24/freyr-js/bins/posix/AtomicParsley

I believe you might have an extra /freyr-js/ in that path

- file /Users/matteog24/freyr-js/freyr-js/bins/posix/AtomicParsley
+ file /Users/matteog24/freyr-js/bins/posix/AtomicParsley

from freyr-js.

miraclx avatar miraclx commented on May 12, 2024

You might also need to confirm the commit you're on after the update

git --git-dir="$(dirname $(python -c "import os;print(os.path.realpath('$(which freyr)'))"))/.git" rev-parse --short HEAD

from freyr-js.

miraclx avatar miraclx commented on May 12, 2024

Or better still, if you have Docker installed already, use the docker image

from freyr-js.

matteog24 avatar matteog24 commented on May 12, 2024
export PATH="$PATH:/Users/matteog24/freyr-js/freyr-js/bins/posix"

This worked! There was a double freyr-js folder (I'm not very organized...), but the real issue was writing the directory of AtomicParsley and not the folder!

Thank you so much!

from freyr-js.

miraclx avatar miraclx commented on May 12, 2024

Yeah, it's good that worked but ensure you have the latest version of freyr installed, so you don't need to keep setting the PATH to include bins/posix.

The latest versions should appropriately find AtomicParsley for you so you don't have to.

from freyr-js.

matteog24 avatar matteog24 commented on May 12, 2024

Yeah, it's good that worked but ensure you have the latest version of freyr installed, so you don't need to keep setting the PATH to include bins/posix.

The latest versions should appropriately find AtomicParsley for you so you don't have to.

Yes! When you updated the repo, I immediately updated it too to make sure about the issues about the path

from freyr-js.

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.