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

In Readme, not obvious how to ensure binaries are in $PATH #131

Open
arrowtype opened this issue Apr 3, 2020 · 2 comments
Open

In Readme, not obvious how to ensure binaries are in $PATH #131

arrowtype opened this issue Apr 3, 2020 · 2 comments

Comments

@arrowtype
Copy link

In the past, I've installed this through homebrew, but I'm trying to follow the Readme instructions this time around. The make process is very simple, but I am stuck at this advice:

Ensure the binaries from the build process are in your $PATH

How does one do this? Is there more information we might give people about the probably paths of the binaries created? It isn't made obvious in the output of the makefile (at least not to me).

My current guess is that I should update my PATH in ~/.bash_profile to be something like this:

PATH="$PATH:/Users/stephennixon/woff2/woff2_compress:/Users/stephennixon/woff2/woff2_decompress:/Users/stephennixon/woff2/woff2_info:/Library/Frameworks/Python.framework/Versions/3.8/bin"
export PATH

I realize that the exact instructions may vary from person to person, but I hoping there might be slightly more we could say about this step?

If anyone sees this who happens to have advice on this, I would be very appreciative! If I figure it out first, I will try to update this and perhaps make a PR.

Thank you!

@arrowtype
Copy link
Author

arrowtype commented Apr 3, 2020

Ah, it was slightly simpler.

I had to add /Users/stephennixon/woff2 to my PATH variable, so that the three commands in that directory could be called. It makes more sense, now. :)

PATH="$PATH:/Users/stephennixon/woff2:/Library/Frameworks/Python.framework/Versions/3.8/bin"
export PATH

UPDATE: to clarify, I only added /Users/stephennixon/woff2 to the PATH variable, and then there is another path added for Python. The two are separated with :. Quoting from man bash docs to define what the PATH variable does: "An attempt is first made to open the file in the current directory, and, if no file is found, then the shell searches the directories in PATH for the script." So, basically, when we point to the command woff2_compress, the woff2 directory must be in the PATH variable for it to be possible to run.

@koitaki
Copy link

koitaki commented Oct 2, 2021

For WSL, after cloning the repo in home/projects I did:

PATH="$PATH:/home/user/projects/woff2"
export PATH

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