Under Review
over 1 year ago

IDEA: Fix SDK Manager and VSCode extension on Fedora 37 (completely non-functional)

I'm unable to run SDK Manager 4.1.7 from Fedora Linux 37.

I have unzipped the `sdkmanager.zip` and followed the steps here:

$./sdkmanager 
./sdkmanager: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory

# image libs installed
$dnf list installed | grep libjpeg                    
libjpeg-turbo.i686                                        2.1.3-2.fc37                        @fedora                 
libjpeg-turbo.x86_64                                      2.1.3-2.fc37                        @anaconda               
libjpeg-turbo-devel.i686                                  2.1.3-2.fc37                        @fedora                 
libjpeg-turbo-devel.x86_64                                2.1.3-2.fc37                        @fedora                 
libjpeg-turbo-utils.x86_64                                2.1.3-2.fc37                        @fedora

$dnf list installed | grep libpng 
libpng.i686                                               2:1.6.37-13.fc37                    @fedora                 
libpng.x86_64                                             2:1.6.37-13.fc37                    @anaconda               
libpng12.i686                                             1.2.57-16.fc37                      @fedora                 
libpng12.x86_64                                           1.2.57-16.fc37                      @fedora 

# java installed
$dnf list installed | grep openjdk
java-1.8.0-openjdk.x86_64                                 1:1.8.0.352.b08-2.fc37              @updates                
java-1.8.0-openjdk-devel.x86_64                           1:1.8.0.352.b08-2.fc37              @updates                
java-1.8.0-openjdk-headless.x86_64                        1:1.8.0.352.b08-2.fc37              @updates                
java-17-openjdk.x86_64                                    1:17.0.5.0.8-1.fc37                 @updates                
java-17-openjdk-devel.x86_64                              1:17.0.5.0.8-1.fc37                 @updates                
java-17-openjdk-headless.x86_64                           1:17.0.5.0.8-1.fc37                 @updates

# default java version
java-17-openjdk.x86_64 (/usr/lib/jvm/java-17-openjdk-17.0.5.0.8-1.fc37.x86_64/bin/java)

There are no file hashes so I can't check the integrity of the dl (I've re-tried a few times, but this is just poor practice for Garmin, considering their security failures/breaches).

I have tried to relocate the /bin and /share files to ~/.local/{bin, share} and also to /usr/local/{bin, share} and tried to run ./sdkmanager from those locations with the same output.

Also, all the image files in the /share folder are *.png, while the sdkmanager is asking for libjpeg.

As for the VS Code Monkey C plugin has no options to locate sdkmanager, and verify install fails.

Not sure where to go from here. I want to get this running in Linux, rather than install through VM.

Any further suggestions to get this running in Linux natively (bare-metal or LXC/VM, Ubuntu/Debian, etc).

Thank you for any assistance.