Makeblock-official / mBlock

base on scratch offline v2.0 by MIT, Learn more from Makeblock official website
http://www.makeblock.com
GNU General Public License v2.0
319 stars 228 forks source link

Problem with libstdc++.so in postinst of mBlock_4.0.4_i386.deb #82

Open i-eperez opened 6 years ago

i-eperez commented 6 years ago

Installing mblock in a debian 9 (stretch) 32bits. After installing mblock I fail applications that use the library. For example libreoffice.

These are the versions of the libraries installed on my system.

dpkg -l| grep libstdc++
ii  libstdc++-7-dev:i386  7.2.0-1
ii  libstdc++6:i386  7.2.0-1 

I found that mblock modifies the library in the postinst of the package.

/var/lib/dpkg/info/ideservice.postinst (mBlock)

if [ -f /usr/lib/i386-linux-gnu/libstdc++.so.6.0.21 ] 
then
    echo 'is exist,no done';
else
    sudo rm -rf /usr/lib/i386-linux-gnu/libstdc++.so.6;
    sudo cp /opt/makeblock/libstdc++.so.6.0.21 /usr/lib/i386-linux-gnu/;
    sudo ln -s /usr/lib/i386-linux-gnu/libstdc++.so.6.0.21 /usr/lib/i386-linux-gnu/libstdc++.so.6;
fi