-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Installing and using plugins under Windows does not work #24074
Comments
you can copy the script into the plugin directory by hand. but the script should add the rule for install_windows to work in windows. can you give it a try by modifying the file and sending a PR? |
Let me rephrase it. This is a problem related to the packages itself and not to r2pm. It will be good that the most used packages are supported on windows by having the target script. Would you like to edit those packages and write those batch scripts? Heres an example: https://github.com/radareorg/radare2-pm/blob/master/db/r2frida |
I agree that r2pm may stop earlier and not clone a repo if the pkg doesnt contain the windows scripts. This is something I can fix in here |
Okay, thanks for further explanation. I cannot promise anything but I will have a look. This is all related to the decai example from above, correct? I will also have a look for the other case where the installation succeeds but then the plugin cannot be called. Like it is illustrated above for the r2ai plugin. |
i just did the windows scripts for decai, but i have no windows/time to test it, give it a try and let me know if it works now |
also this 4787cbf |
Hi, sorry to say that this seems to be not yet fixed (or maybe I do not understand it). The update recognized a change for the decai plugin but the installation failed.
|
Do you have curl installed? If so i guess we need to fix the function that walks the PATH env var for windows environments |
Should be baked into Windows by default but I'll check |
Curl is available. |
works for me it finds curl, installs the plugin, and decai command appears in the r2 shell. try again after building latest r2 from git just in case.. also update the r2pm database with r2pm -U |
in r2 you have the "where" and "whereis" commands to tell you where a binary is located in PATH. this works fine for r2 and r2pm in my box. the code used in this command is the same used by r2pm |
ping? |
Hi, sorry. experienced a few obstacles and did not try again until now. So for completeness but not related to this issue: I compiled it again and ran:
Then I ran:
So, that is basically all I can share right now. |
Environment
Windows 11 vm
Description
When installing plugins, some installations are running without an error, others throw errors. After a successful installation the plugin cannot be used unfortunately.
This is true for a precompiled set of binaries as well as for a fresh built installation:
Example for a working installation but where the invocation fails:
Example where even the plugin installation fails:
The text was updated successfully, but these errors were encountered: