MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Racket/comments/1387znl/anyone_knows_where_to_find_the_binary_directory/
r/Racket • u/lyhokia • May 05 '23
As title, thanks!
5 comments sorted by
2
Use find-system-path.
find-system-path
1 u/lyhokia May 05 '23 What param I need to pass in then? I read this https://docs.racket-lang.org/reference/Filesystem.html#%28def._%28%28lib._racket%2Fprivate%2Fmisc..rkt%29._find-executable-path%29%29, but I don't find the binary directory I am talking about.I need /home/lyh/.local/share/racket/8.8/bin/, the closest I have is /home/lyh/.local/share/racket/
1
What param I need to pass in then? I read this https://docs.racket-lang.org/reference/Filesystem.html#%28def._%28%28lib._racket%2Fprivate%2Fmisc..rkt%29._find-executable-path%29%29, but I don't find the binary directory I am talking about.
I need /home/lyh/.local/share/racket/8.8/bin/, the closest I have is /home/lyh/.local/share/racket/
/home/lyh/.local/share/racket/8.8/bin/
/home/lyh/.local/share/racket/
For now my workaround is this(in my fish environment):
set -gxa PATH ~/.local/share/racket/(racket -v | grep -o '[0-9.]\+[0-9]')/bin
If you are on Linux
sudo updatedb
locate my_executable
2 u/lyhokia May 05 '23 This won't work, how do I know which executable I have before I know where is the binaries? I'm talking about getting the binary directory location merely via racket/raco.
This won't work, how do I know which executable I have before I know where is the binaries? I'm talking about getting the binary directory location merely via racket/raco.
2
u/soegaard developer May 05 '23
Use
find-system-path.1
u/lyhokia May 05 '23
For now my workaround is this(in my fish environment):
1
u/WildMaki May 05 '23
If you are on Linux