cancel
Showing results for 
Search instead for 
Did you mean: 

Howto: Work around unresolvable USBX requirements when installing STM32CubeIDE

Uwe Bonnes
Principal III

Searching for "USBX" in the forum brings up over 330 post. USBX is deprecated since 2014, but a requirement for it still lingers in st-stlink-server-2.1.1-1-linux-amd64.rpm

 

 

# unzip en.st-stm32cubeide_1.15.1_21094_20240412_1041_amd64.rpm_bundle.sh.zip
# sh en.st-stm32cubeide_1.15.1_21094_20240412_1041_amd64.rpm_bundle.sh
...
License accepted.
Do you want to install Segger J-Link udev rules? [Y/n] n
error: Failed dependencies:
        libusbx >= 1.0 is needed by st-stlink-server-2.1.1-1.x86_64
Preparing...                          ################################# [100%]

 

 

 To work around:

- install rpmrebuild

- run "sh st-stm32cubeide_1.15.1_21094_20240412_1041_amd64.rpm_bundle.sh" again, but do not type anything in the license window

- Put the installer in the background with "^z^ or open another terminal where the unzip happened

 

 

#cd makeself_dir_AvZtzf/
#rpmrebuild -e -p st-stlink-server-2.1.1-1-linux-amd64.rpm
Remove the line "Requires:      libusbx >= 1.0" in the editor that opened up
Save and exit
...
result: /usr/src/packages/RPMS/x86_64/st-stlink-server-2.1.1-1.x86_64.rpm

 

 

 - install /usr/src/packages/RPMS/x86_64/st-stlink-server-2.1.1-1.x86_64.rpm

- install st-stm32cubeide-1.15.1-21094_20240412_1041.amd64.rpm

- if needed also install st-stlink-udev-rules-1.0.3-2-linux-noarch.rpm

- Go back to the installer window and type no to clean up

@Peter BENSCH 

0 REPLIES 0