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?


1 Answer 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.

  • "my answer is based on the error message provided" -> I think if you look at that error it's not because it isn't installed.
    – goldilocks
    Sep 8, 2016 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.