{"action":"created","issue":{"url":"https://api.github.com/repos/reborndb/qdb/issues/34","labels_url":"https://api.github.com/repos/reborndb/qdb/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/reborndb/qdb/issues/34/comments","events_url":"https://api.github.com/repos/reborndb/qdb/issues/34/events","html_url":"https://github.com/reborndb/qdb/issues/34","id":86483370,"number":34,"title":"setup.sh fails on linux platform","user":{"login":"yinhm","id":14960,"avatar_url":"https://avatars.githubusercontent.com/u/14960?v=3","gravatar_id":"","url":"https://api.github.com/users/yinhm","html_url":"https://github.com/yinhm","followers_url":"https://api.github.com/users/yinhm/followers","following_url":"https://api.github.com/users/yinhm/following{/other_user}","gists_url":"https://api.github.com/users/yinhm/gists{/gist_id}","starred_url":"https://api.github.com/users/yinhm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinhm/subscriptions","organizations_url":"https://api.github.com/users/yinhm/orgs","repos_url":"https://api.github.com/users/yinhm/repos","events_url":"https://api.github.com/users/yinhm/events{/privacy}","received_events_url":"https://api.github.com/users/yinhm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-09T07:07:57Z","updated_at":"2015-06-09T09:13:36Z","closed_at":null,"body":"librocksdb.dylib is OSX specific, on linux platform, default to .so \r\n\r\n```\r\n$ git diff\r\ndiff --git a/extern/setup.sh b/extern/setup.sh\r\nindex 235063a..5ad8401 100755\r\n--- a/extern/setup.sh\r\n+++ b/extern/setup.sh\r\n@@ -13,7 +13,7 @@ cd ./rocksdb; make clean\r\n make -j4 shared_lib && cd .. || exit 1\r\n \r\n cp -rf rocksdb/include/rocksdb ${BUILD}\r\n-cp -f rocksdb/librocksdb.dylib ${BUILD}\r\n+cp -f rocksdb/librocksdb.* ${BUILD}\r\n \r\n cd ./levigo\r\n CGO_CFLAGS=\"-I${BUILD}\" CGO_LDFLAGS=\"-L${BUILD} -lleveldb -lsnappy -lstdc++\" go install ./\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/reborndb/qdb/issues/comments/110285546","html_url":"https://github.com/reborndb/qdb/issues/34#issuecomment-110285546","issue_url":"https://api.github.com/repos/reborndb/qdb/issues/34","id":110285546,"user":{"login":"siddontang","id":1080370,"avatar_url":"https://avatars.githubusercontent.com/u/1080370?v=3","gravatar_id":"","url":"https://api.github.com/users/siddontang","html_url":"https://github.com/siddontang","followers_url":"https://api.github.com/users/siddontang/followers","following_url":"https://api.github.com/users/siddontang/following{/other_user}","gists_url":"https://api.github.com/users/siddontang/gists{/gist_id}","starred_url":"https://api.github.com/users/siddontang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siddontang/subscriptions","organizations_url":"https://api.github.com/users/siddontang/orgs","repos_url":"https://api.github.com/users/siddontang/repos","events_url":"https://api.github.com/users/siddontang/events{/privacy}","received_events_url":"https://api.github.com/users/siddontang/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T09:13:35Z","updated_at":"2015-06-09T09:13:35Z","body":"Thanks @yinhm \r\n\r\nBuilding leveldb and rocksdb in different platforms like linux, macosx is not an easy thing, especially for rocksdb, so later we may recommend user to read rocksdb's manual first and then build, not directly using setup.sh. \r\n\r\nWe develop qdb in mac osx mainly, but we support it in linux too. The setup.sh is our fault, thank you very much. "}}