-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 14.04 #46
Ubuntu 14.04 #46
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Setup steps - non hdfs | ||
1)cd scribe; rm -f debian; ln -sf debian_nonhdfs debian | ||
2)sudo vi /etc/apt/sources.list.d/inmobi.list | ||
add the entry deb http://repo.corp.inmobi.com:9999/precise ./ | ||
3)sudo apt-get update | ||
4)sudo apt-get install debhelper autotools-dev inmobi-techplatform-libthrift-dev inmobi-techplatform-libfb303 libboost-thread-dev libstdc++6-4.4-dev libevent-dev inmobi-techplatform-thrift-compiler libboost-dev libboost-test-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev | ||
5) creating sym links for pointing the multi threaded libboost to single threaded libboost | ||
sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_thread.a /usr/lib/x86_64-linux-gnu/libboost_thread-mt.a | ||
sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_system.a /usr/lib/x86_64-linux-gnu/libboost_system-mt.a | ||
sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_filesystem.a /usr/lib/x86_64-linux-gnu/libboost_filesystem-mt.a | ||
6) Creating sym links for the changed directory structure of /usr/lib in ubuntu 14.04 | ||
sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_filesystem.a /usr/lib/libboost_filesystem.a | ||
sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_system.a /usr/lib/libboost_system.a | ||
sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_thread.a /usr/lib/libboost_thread.a |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
AC_PREREQ(2.52) | ||
AC_INIT([scribe], [1.5.0]) | ||
AC_CONFIG_MACRO_DIR([aclocal]) | ||
AM_INIT_AUTOMAKE([foreign -Wall]) | ||
#AM_INIT_AUTOMAKE([foreign -Wall]) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I faced the same issue, and also did the same fix as done in this pull request facebookarchive#83 From the conversation "The bug is due to Scribe calling AM_INIT_AUTOMAKE in both the top of configure.ac and inside FB_INITIALIZE defined in acinclude.m4. The solution is to comment the AM_INIT_AUTOMAKE" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then let us remove the commented line. |
||
# To install locally | ||
FB_INITIALIZE([localinstall]) | ||
AC_PREFIX_DEFAULT([/usr/local]) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this changed needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scribe expects multi threaded libboost and is currently deprecated. So need to create symlinks as explained in this post
http://askubuntu.com/questions/486006/cannot-find-boost-thread-mt-library
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to do some quick search and could find boost multi-threaded libraries for ubuntu 14:
http://packages.ubuntu.com/trusty/libboost-thread1.54-dev
http://packages.ubuntu.com/trusty/libboost-thread1.55-dev
http://stackoverflow.com/questions/26716202/linux-ubuntu-14-04-boost-libs-and-thread-compilations
Scribe is essentially a multi-threaded application. We need to be extremely careful not to impact this aspect.
Also this linking is done for archive files, whereas scribed essentially links with shared libraries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://groups.google.com/forum/#!topic/boost-list/5nbpE0J_E1c - dicussion on the same.
http://permalink.gmane.org/gmane.comp.lib.boost.user/62273
libboost-thread-mt and libboost-thread were essentially same and the "-mt" part was a decorator. And now there is no more "-mt" version available in the latest versions of libboost. http://www.boost.org/users/history/version_1_40_0.html
From the build package session.
"The default naming of libraries in Unix-like environment now matches system conventions, and does not include various decorations"