You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Some problems about using the pengwin-setup command #758
Describe the bug
I plan to use the "PROGRAMMING" option under "pengwin setup" to install the development environment, but there are always some problems. For example, when I install the Java SDKMAN, I will exit pengwin.exe directly after the installation The bin subdirectory is not found in the sdkman directory. Using the sdk command will show insufficient permissions. I think it's better that I download and install them directly on the official websites of various development environments.
To Reproduce
Steps to reproduce the behavior:
Use "pengwin-setup"
Select "PROGRAMMING"
Select "JAVA"
INSTALL
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
The above is the exit process of "pengwin. exe" after installing the SDK. There is no bin directory after entering the ". sdkman" directory
It seems that several PROGRAMMING components installed through pengwin-setup will show insufficient permissions at runtime, and I do not know where they are installed
Pengwin Version
Run grep "PENGWIN_VERSION" /etc/os-release in Pengwin.
Insert here:
PENGWIN_VERSION="22.11.4"
WSL general info
Run wslsys in Pengwin.
Insert here:
Release Install Date: Sun Apr 17 10:45:02 CST 2022
Branch: co_release
Build: 22000
Full Build: 22000.1.amd64fre.co_release.210604-1628
Display Scaling: 1.25
Locale (Windows): zh_CN
Theme (Windows): light
Uptime (Windows): 0d 21h 13m
Version (WSL): 2
Uptime (WSL): 0d 0h 9m
Release: Pengwin
Kernel: Linux 5.15.74.2-microsoft-standard-WSL2
Packages: 787
IPv4 Address: 172.21.93.178
System Type (Windows): Desktop
Good, looks like it worked. Just close and reopen pengwin. You should be able to run java --version and also sdk list to install other versions if you like
Good, looks like it worked. Just close and reopen pengwin. You should be able to run java --version and also sdk list to install other versions if you like
Unfortunately, the above command still cannot be run after restarting, and the installation should have failed.
Oh, I see. I can successfully use the sdk and java commands after running the "source /home/shine/.sdkman/bin/sdkman-init.sh" command, but if I just restart the wsl command, running sdk and java commands will fail. Should I add it to the ".zshrc" or other startup configuration file? Or is there any other way besides this method?
Activity
crramirez commentedon Nov 21, 2022
Hello @Shadow-XT,
Thanks for reporting. This should work out of the box. We will make the tests. Also test with zsh.
Could you tell me what other options in PROGRAMMING are not working?
Regards,
Carlos
crramirez commentedon Nov 21, 2022
Hello @Shadow-XT
I made some test and everything looks right from our side. Could you please run the following command and send me the result:
ShadowXTz commentedon Nov 22, 2022
Results of running the command
crramirez commentedon Nov 22, 2022
OK could you please run
Looks like sdkman didn't download well the first time
ShadowXTz commentedon Nov 23, 2022
Sorry, I can't successfully install sdkman even after running these two commands
crramirez commentedon Nov 23, 2022
Hello,
Force delete the sdkman directory:
sudo rm -rf /home/shine/.sdkmanAnd try again:
pengwin-setup install PROGRAMMING JAVA --debugPlease send me the logs if it is not successful
ShadowXTz commentedon Nov 23, 2022
crramirez commentedon Nov 23, 2022
Good, looks like it worked. Just close and reopen pengwin. You should be able to run
java --versionand alsosdk listto install other versions if you likeShadowXTz commentedon Nov 23, 2022
Unfortunately, the above command still cannot be run after restarting, and the installation should have failed.

crramirez commentedon Nov 23, 2022
could you run this command and try again?
source /home/shine/.sdkman/bin/sdkman-init.shShadowXTz commentedon Nov 23, 2022
Oh, I see. I can successfully use the sdk and java commands after running the "source /home/shine/.sdkman/bin/sdkman-init.sh" command, but if I just restart the wsl command, running sdk and java commands will fail. Should I add it to the ".zshrc" or other startup configuration file? Or is there any other way besides this method?
crramirez commentedon Nov 23, 2022
Yes, add it there. (.zshrc)
pengwin-setup should add a startup script for that, but something is not working well. I'll check more carefully to see if I find the issue.
ShadowXTz commentedon Nov 23, 2022
Ok, thank you very much for taking so long to solve this problem for me.
crramirez commentedon Nov 23, 2022
You are very welcome