Comments on: Installing and Using Scribe with Ruby on Mac OS https://kpumuk.info/mac-os-x/installing-and-using-scribe-with-ruby-on-mac-os/ In my blog I'll try to describe about interesting technologies, my discovery in IT and some useful things about programming. Mon, 07 Sep 2015 23:10:58 +0000 hourly 1 https://wordpress.org/?v=6.7.1 By: Alexey Kovyrin https://kpumuk.info/mac-os-x/installing-and-using-scribe-with-ruby-on-mac-os/comment-page-1/#comment-284713 Thu, 12 Nov 2009 23:09:26 +0000 http://kpumuk.info/?p=668#comment-284713 Ok, tried the thing on Snow Leopard and noticed one thing that needs to be changed here: you need libevent to be installed as a prerequisite.

1
$ sudo gem install libevent

P.S. Make sure you reinstall thrift after libevent installation to make sure it’d build libthriftnb.

]]>
By: mark https://kpumuk.info/mac-os-x/installing-and-using-scribe-with-ruby-on-mac-os/comment-page-1/#comment-282579 Fri, 07 Aug 2009 00:29:06 +0000 http://kpumuk.info/?p=668#comment-282579 @tiru,

For this error

1
error: event.h: No such file or directory

You need to install libevent dev library, am not sure how to install it on mac.

]]>
By: Tiru https://kpumuk.info/mac-os-x/installing-and-using-scribe-with-ruby-on-mac-os/comment-page-1/#comment-281888 Mon, 22 Jun 2009 04:11:14 +0000 http://kpumuk.info/?p=668#comment-281888 Many Thanks for the wonderful instructions to install scribe on OS X.

I am trying to install it on Mac OSX (leopard: 10.5.6)

I religiously followed the instructions and was able to install boost and thrift successfully. When I am trying to run “make” command during scribe installation, I am running into the following issue.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
++ -DPACKAGE_NAME="scribe" -DPACKAGE_TARNAME="scribe" -DPACKAGE_VERSION="1.5.0" -DPACKAGE_STRING="scribe\ 1.5.0" -DPACKAGE_BUGREPORT="" -DHAVE_BOOST= -DHAVE_BOOST_SYSTEM= -DHAVE_BOOST_FILESYSTEM= -I.  -I.. -I/opt/thrift/include -I/opt/thrift/include/thrift -I/opt/fb303/include/thrift -I/opt/fb303/include/thrift/fb303 -I/opt/local/include     -Wall -O3 -MT store.o -MD -MP -MF .deps/store.Tpo -c -o store.o store.cpp
In file included from common.h:49,
                 from store.cpp:25:
/opt/thrift/include/thrift/server/TNonblockingServer.h:32:19: error: event.h: No such file or directory
/opt/thrift/include/thrift/server/TNonblockingServer.h:78: error: ISO C++ forbids declaration of ‘event_base’ with no type
/opt/thrift/include/thrift/server/TNonblockingServer.h:78: error: expected ‘;’ before ‘*’ token
/opt/thrift/include/thrift/server/TNonblockingServer.h:81: error: field ‘serverEvent_’ has incomplete type
/opt/thrift/include/thrift/server/TNonblockingServer.h:196: error: ISO C++ forbids declaration of ‘event_base’ with no type
/opt/thrift/include/thrift/server/TNonblockingServer.h:196: error: expected ‘;’ before ‘*’ token
/opt/thrift/include/thrift/server/TNonblockingServer.h:200: error: expected `;' before ‘void’
/opt/thrift/include/thrift/server/TNonblockingServer.h:248: error: ‘event_base’ has not been declared
/opt/thrift/include/thrift/server/TNonblockingServer.h: In constructor ‘apache::thrift::server::TNonblockingServer::TNonblockingServer(boost::shared_ptr, int)’:
/opt/thrift/include/thrift/server/TNonblockingServer.h:113: error: class ‘apache::thrift::server::TNonblockingServer’ does not have any field named ‘eventBase_’
/opt/thrift/include/thrift/server/TNonblockingServer.h: In constructor ‘apache::thrift::server::TNonblockingServer::TNonblockingServer(boost::shared_ptr, boost::shared_ptr, int, boost::shared_ptr)’:
/opt/thrift/include/thrift/server/TNonblockingServer.h:126: error: class ‘apache::thrift::server::TNonblockingServer’ does not have any field named ‘eventBase_’
/opt/thrift/include/thrift/server/TNonblockingServer.h: In constructor ‘apache::thrift::server::TNonblockingServer::TNonblockingServer(boost::shared_ptr, boost::shared_ptr, boost::shared_ptr, boost::shared_ptr, boost::shared_ptr, int, boost::shared_ptr)’:
/opt/thrift/include/thrift/server/TNonblockingServer.h:148: error: class ‘apache::thrift::server::TNonblockingServer’ does not have any field named ‘eventBase_’
/opt/thrift/include/thrift/server/TNonblockingServer.h: At global scope:
/opt/thrift/include/thrift/server/TNonblockingServer.h:292: error: field ‘event_’ has incomplete type
/opt/thrift/include/thrift/server/TNonblockingServer.h:334: error: field ‘taskEvent_’ has incomplete type
/opt/thrift/include/thrift/server/TNonblockingServer.h: In member function ‘void apache::thrift::server::TConnection::setRead()’:
/opt/thrift/include/thrift/server/TNonblockingServer.h:354: error: ‘EV_READ’ was not declared in this scope
/opt/thrift/include/thrift/server/TNonblockingServer.h:354: error: ‘EV_PERSIST’ was not declared in this scope
/opt/thrift/include/thrift/server/TNonblockingServer.h: In member function ‘void apache::thrift::server::TConnection::setWrite()’:
/opt/thrift/include/thrift/server/TNonblockingServer.h:359: error: ‘EV_WRITE’ was not declared in this scope
/opt/thrift/include/thrift/server/TNonblockingServer.h:359: error: ‘EV_PERSIST’ was not declared in this scope
make[3]: *** [store.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Any pointers would be of great help!!

Thanks,
Tiru

]]>
By: Dmitry Shaposhnik https://kpumuk.info/mac-os-x/installing-and-using-scribe-with-ruby-on-mac-os/comment-page-1/#comment-281334 Mon, 18 May 2009 17:13:21 +0000 http://kpumuk.info/?p=668#comment-281334 By the way, for Perl there is Log::Dispatch::Scribe module on CPAN. It has also script scribe_cat.pl within.

]]>
By: Dmitry Shaposhnik https://kpumuk.info/mac-os-x/installing-and-using-scribe-with-ruby-on-mac-os/comment-page-1/#comment-281333 Mon, 18 May 2009 17:06:08 +0000 http://kpumuk.info/?p=668#comment-281333 Many thanx for suggesting Scribe!

Btw, if somebody would try to compile Thrift and Scribe on FreeBSD: for me it works just with “gmake”.

]]>