LoginSignup
8
8

More than 5 years have passed since last update.

ubuntu15.10にswift+Perfect環境を作ろうとしたらmakeで結構怒られたのでメモ

Posted at

こちらの記事を参考にさせて頂きながら環境構築していたら、僕の環境の場合makeでlibがない系エラーが結構出たので、メモ書き。

▶ make
cd PerfectLib && make
make[1]: Entering directory '/root/Perfect/PerfectLib'
clang++ ICU.o NetNamedPipe.o File.o Threading.o LibEvent.o Bytes.o FastCGI.o LogManager.o NetTCPSSL.o PerfectServer.o WebConnection.o Closeable.o FastCGIServer.o Net.o Utilities.o MimeReader.o NetTCP.o SessionManager.o WebRequest.o HTTPServer.o MimeType.o PageHandler.o SQLite.o WebResponse.o Dir.o Mustache.o PerfectError.o SysProcess.o DynamicLoader.o JSON.o Utilities-Server.o Routing.o LinuxBridge.o util.o -L/usr/local/swift-2.2/usr/lib/swift/linux -lFoundation -lswiftCore -lswiftGlibc -ldl -lm -shared -levent -levent_pthreads -lssl -lcrypto -lsqlite3 -licudata -licui18n -licuuc -lpthread -o PerfectLib.so
/usr/bin/ld: -lsqlite3 が見つかりません
/usr/bin/ld: -licudata が見つかりません
/usr/bin/ld: -licui18n が見つかりません
/usr/bin/ld: -licuuc が見つかりません
clang: error: linker command failed with exit code 1 (use -v to see invocation)
makefile:61: recipe for target 'PerfectLib.so' failed
make[1]: *** [PerfectLib.so] Error 1
make[1]: Leaving directory '/root/Perfect/PerfectLib'
makefile:4: recipe for target 'all' failed
make: *** [all] Error 2

こんな感じですね。

以下apt-getして対応

apt-get install -y libicu-dev libsqlite3-dev

うまく行きました。

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8