2

I have installed the swift 3.0 compiler on my raspberry pi 3 (raspbian jessie), but I am getting the following errors while trying to run the interpreter or the compiler.

swift: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by swift)
swift: /lib/arm-linux-gnueabihf/libtinfo.so.5: no version information available (required by swift)

Any ideas how to make this happen?

marc-medley
  • 543
  • 2
  • 5
  • 16
Midas
  • 129
  • 5

1 Answers1

1

Try installing libstdc++ and g++, then run ldconfig.

$sudo apt-get install libstdc++6 build-essential 
$sudo ldconfig

I've never used or installed swift, my answer is based on the error message provided. if you have g++, and libstdc++ installed, then prehaps try placing a link to the location of those files in the place where swift is looking for them.

I would use the locate command, but I also realize some Raspi distros omit the locate command (madness), if you dont have it, install that too.

$sudo locate libstdc++

I would expect it to be in /usr/lib/gcc some place. once you locate the librarys you need, check the paths against what swift expects. if swift is looking in the wrong place, make a symlink to the correct location with ln -s.

j0h
  • 2,508
  • 6
  • 27
  • 36