Trouble with gcc when installing any library

Raspberry Pi related support

Trouble with gcc when installing any library

Postby tio_cristobal » 21 Feb 2018, 23:19

Dear folks,
Here is probably a trouble for more than one “half newbee” with Rasberry Pi3 & Runeaudio.
I succeed to configure one year ago the 0.4-beta-20160321 image and install all the necessaries libraries to display with 20x4 LCD (in parallel, with control buttons), spending “few nights”…

When I try to enjoy the 0.4-beta-20170229 image, I am still able to configure all to listen to music with my last favorite DAC, but stay stuck to install any new library (for example, RPi.GPIO) to manage any additional feature (like control buttons + LCD, the same clone with last UI interface in fact). Always receiving the error from GCC compiler, used when typing “python setup.py install” after downloading the library, here copying the command and the resulting message:

[root@runeaudio RPi.GPIO-0.6.3]# python3.6 setup.py install
running install
running build
running build_py
running build_ext
building 'RPi._GPIO' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall –Wstrict-prototypes -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector-strong -fno-plt -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2-pipe -fstack-protector-strong -fno-plt -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -I/usr/include/python3.6m -c source/py_gpio.c -o build/temp.linux-armv7l-3.6/source/py_gpio.o
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/7.2.1/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
error: command 'gcc' failed with exit status 1


I anderstand gcc is not correctly installed, despite only doing the usual “pacman –S gcc” with any error messages. Some investigations on net did not help, only found that python may also miss additional development libraries…
Help highly required…
tio_cristobal
 
Posts: 5
Joined: 21 Feb 2018, 22:31

Re: Trouble with gcc when installing any library

Postby hondagx35 » 22 Feb 2018, 18:29

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Trouble with gcc when installing any library

Postby tio_cristobal » 23 Feb 2018, 10:09

Hello Frank,

Thank's for responding. The command “find etc” gives the good answer.
To be sure catch the trouble. I restart all from last 2017 image, because I've made a lot of updating (probably uncontrolled). What has been done last night is in the chronological order:
Write image, expand SD, pacman –Syy, pacman –S unzip, pacman –S gcc, download the last RPi.GPiO, uncompile, go inside directory RPi.GPiOx, python3.6 setup.py install, and the “trouble came back”!
Where is my mistake? When downloading gcc etc, I am doing all from in the root directory, with perfil as root.
I can also confirm my trouble also appears with the 20160321 image, I deduced wrongly it was because incompatibility of old version with the last libraries on the net I wanted to install.
tio_cristobal
 
Posts: 5
Joined: 21 Feb 2018, 22:31

Re: Trouble with gcc when installing any library

Postby tio_cristobal » 23 Feb 2018, 10:27

One additional information of the trouble, the error message changed few, asking for missing library:

"/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/7.2.1/cc1: error while loading shared libraries: libmpfr.so.6: cannot open shared object file: No such file or directory"

And the response for libmpfr* is still "libmpfr.so.4". That my last clue... So I tried to install an older version o RPi.GPIO but the gcc is still not working.
tio_cristobal
 
Posts: 5
Joined: 21 Feb 2018, 22:31

Re: Trouble with gcc when installing any library

Postby hondagx35 » 23 Feb 2018, 12:34

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Trouble with gcc when installing any library

Postby tio_cristobal » 24 Feb 2018, 23:18

Hello Frank,

I confirm... Lib RPi.GPIO is already installed (shamed on mi).
I was taking my notes with the previous image of 0.4-beta, and trying to install one by one the libraries required to make rune “RuneAudioLCDMod” (LCD + control buttons).
But in fact, I am still stuck few steps ahead with again gcc and the famous “libmpfr.so.6” missing, cancelling the complete installation of pillow, moment and probably more lib to make rune module RuneAudioLCDMod.
Chris.
tio_cristobal
 
Posts: 5
Joined: 21 Feb 2018, 22:31

Re: Trouble with gcc when installing any library

Postby hondagx35 » 25 Feb 2018, 13:34

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 6 guests