Had followed the following steps for st-link installation git clone
https://github.com/texane/stlink
cd stlink/
cmake .
make
#Step-2.2: Now we copy the built binaries to their place:
cd build/Release/bin
sudo cp st-* /usr/local/bin
cd ../lib
sudo cp
.so /lib32
#Step-2.3: Copy udev rules:
cd ../../..
sudo cp config/udev/rules.d/49-stlinkv* /etc/udev/rules.d/