I'm having a nightmare trying to install thrift on an EC2 server
running 64bit OpenSolaris 2009.06.

Are there any instructions I can follow?

Are there any steps I'm missing? Here's my current procedure:

Install basic packages:
# pkg install SUNWgcc
# pkg install SUNWgmake
# pkg install SUNWcmake
# pkg install SUNWaconf
# pkg install SUNWlibevent
# pkg install SUNWflexlex
# pkg install SUNWbison
# pkg install SUNWgnu-automake-19
# pkg install SUNWgnu-automake-110
# pkg install java-dev

Then I need to "fix" aclocal/automake so that bootstrap.sh can find them:

# ln -s /usr/bin/aclocal-1.10 /usr/bin/aclocal
# ln -s /usr/bin/automake-1.10 /usr/bin/automake

Since the current libtool package is at 1.5.22 I'm then downloading
and installing the minimum required version:

# cd /usr/src
# wget http://ftp.gnu.org/gnu/libtool/libtool-1.5.24.tar.gz -O- | tar zx
# cd libtool-1.5.24/
# ./configure CPPFLAGS='-D__BYTE_ORDER=__BIG_ENDIAN
-DAF_LOCAL=AF_UNIX' --prefix=/usr && gmake && gmake install

Then boost:

# cd /usr/src
# wget 
http://downloads.sourceforge.net/project/boost/boost/1.34.1/boost_1_34_1.tar.gz?use_mirror=heanet
-O- | tar zx
# cd boost_1_34_1/tools/jam/src
# CPPFLAGS='-D__BYTE_ORDER=__BIG_ENDIAN -DAF_LOCAL=AF_UNIX' ./build.sh
# cp bin.solarisx86/bjam /usr/bin/
# cd /usr/src/boost_1_34_1
# CPPFLAGS='-D__BYTE_ORDER=__BIG_ENDIAN -DAF_LOCAL=AF_UNIX' bjam install

Then thrift:

# wget 
http://mirrors.dedipower.com/ftp.apache.org/incubator/thrift/0.2.0-incubating/thrift-0.2.0-incubating.tar.gz
-O- | tar zx
# cd thrift-0.2.0
# ./bootstrap.sh

At this point ./configure is failing with the following message:
./configure: line 16607: syntax error at line 16615: `(' unexpected
...though that can be bypassed by editing the configure file near that
line and turning off Mono directly.

Once ./configure is working, I build:

# make

But I start to see errors like this, and the build fails:

../../libtool: line 833: X--tag=CXX: not found
../../libtool[866]: libtool: ignoring unknown tag : not found [No such
file or directory]
../../libtool: line 833: X--mode=link: not found
../../libtool[1000]: *** Warning: inferring the mode of operation is
deprecated.: not found [No such file or directory]
../../libtool[1001]: *** Future versions of Libtool will require
--mode=MODE be specified.: not found [No such file or directory]
gcc: no input files
...
../../libtool: line 2238: X-Wall: not found
../../libtool: line 2238: X-I./src: not found
../../libtool: line 2238: X-I/usr/local/include/boost-1_34_1: not found
../../libtool: line 2238: X-g: not found
../../libtool: line 2238: X-O2: not found
../../libtool: line 2238: X-Wall: not found
../../libtool: line 1957: X-L/usr/local/lib: not found
../../libtool: line 2407: Xthrift: not found

X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: SunOS 5.11 snv_108 i86pc
Current Operating System: SunOS ip-10-228-230-239 5.11 snv_111b i86pc
Build Date: 07 May 2009  04:44:56PM

Solaris ABI: 64-bit
SUNWxorg-server package version: 6.9.0.5.11.11100,REV=0.2009.05.07
SUNWxorg-graphics-ddx package version: 6.9.0.5.11.11100,REV=0.2009.04.02
SUNWxorg-mesa package version: 6.9.0.5.11.11100,REV=0.2009.04.02
        Before reporting problems, check http://sunsolve.sun.com/
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar 24 18:13:05 2010
(EE) Unable to locate/open config file

Fatal server error:
xf86OpenConsole: Cannot open /dev/fb (No such file or directory)

../../libtool: line 2419: Xthrift: not found
../../libtool: line 2554: X-lfl: not found
../../libtool: line 2554: X-lsocket: not found
../../libtool: line 2554: X-lrt: not found
../../libtool: line 2554: X-lpthread: not found
../../libtool: line 2554: X-lsocket: not found
../../libtool: line 2636: X-L/root: not found
../../libtool: line 2554: X-lfl: not found
../../libtool: line 2554: X-lrt: not found
../../libtool: line 2554: X-lpthread: not found
../../libtool: line 2554: X-lsocket: not found
../../libtool: line 2636: X-L/root: not found
../../libtool: line 2554: X-lfl: not found
../../libtool: line 2554: X-lrt: not found
../../libtool: line 2554: X-lpthread: not found
../../libtool: line 2554: X-lsocket: not found
../../libtool: line 5171: Xg++ "" "" "" "" "" "" -o @OUTPUT@
thrift-thrifty.o thrift-thriftl.o thrift-main.o md5.o
thrift-t_generator.o thrift-t_cpp_generator.o
thrift-t_java_generator.o thrift-t_csharp_generator.o
thrift-t_py_generator.o thrift-t_rb_generator.o
thrift-t_perl_generator.o thrift-t_php_generator.o
thrift-t_erl_generator.o thrift-t_cocoa_generator.o
thrift-t_st_generator.o thrift-t_ocaml_generator.o
thrift-t_hs_generator.o thrift-t_xsd_generator.o
thrift-t_html_generator.o  -L/root -lfl -lrt -lpthread -lsocket:
cannot execute [File name too long]
../../libtool: line 5172: Xg++ "" "" "" "" "" "" -o @OUTPUT@
thrift-thrifty.o thrift-thriftl.o thrift-main.o md5.o
thrift-t_generator.o thrift-t_cpp_generator.o
thrift-t_java_generator.o thrift-t_csharp_generator.o
thrift-t_py_generator.o thrift-t_rb_generator.o
thrift-t_perl_generator.o thrift-t_php_generator.o
thrift-t_erl_generator.o thrift-t_cocoa_generator.o
thrift-t_st_generator.o thrift-t_ocaml_generator.o
thrift-t_hs_generator.o thrift-t_xsd_generator.o
thrift-t_html_generator.o  -L/root -lfl -lrt -lpthread -lsocket:
cannot execute [File name too long]

X.Org X Server 1.5.3../../libtool[5181]: : cannot execute [Is a directory]

Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: SunOS 5.11 snv_108 i86pc
Current Operating System: SunOS ip-10-228-230-239 5.11 snv_111b i86pc
Build Date: 07 May 2009  04:44:56PM

Solaris ABI: 64-bit
SUNWxorg-server package version: 6.9.0.5.11.11100,REV=0.2009.05.07
SUNWxorg-graphics-ddx package version: 6.9.0.5.11.11100,REV=0.2009.04.02
SUNWxorg-mesa package version: 6.9.0.5.11.11100,REV=0.2009.04.02
        Before reporting problems, check http://sunsolve.sun.com/
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, make[3]: Leaving
directory `/usr/share/src/thrift-0.2.0/compiler/cpp'
(II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar 24 18:13:06 2010
(EE) Unable to locate/open config file
make[2]: Leaving directory `/usr/share/src/thrift-0.2.0/compiler/cpp'

Fatal server error:
xf86OpenConsole: Cannot open /dev/fb (No such file or directory)

Making all in lib
make[2]: Entering directory `/usr/share/src/thrift-0.2.0/lib'
Making all in cpp
make[3]: Entering directory `/usr/share/src/thrift-0.2.0/lib/cpp'
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../..  -I/usr/local/include/boost-1_34_1 -I./src
-D__BYTE_ORDER=__BIG_ENDIAN -DAF_LOCAL=AF_UNIX -Wall -g -O2 -MT
Thrift.lo -MD -MP -MF .deps/Thrift.Tpo -c -o Thrift.lo `test -f
'src/Thrift.cpp' || echo './'`src/Thrift.cpp
../../libtool: line 833: X--tag=CXX: not found
../../libtool[866]: libtool: ignoring unknown tag : not found [No such
file or directory]
../../libtool: line 833: X--mode=compile: not found
../../libtool[1000]: *** Warning: inferring the mode of operation is
deprecated.: not found [No such file or directory]
../../libtool[1001]: *** Future versions of Libtool will require
--mode=MODE be specified.: not found [No such file or directory]
../../libtool: line 1144: Xg++: not found
../../libtool: line 1144: X-DHAVE_CONFIG_H: not found
../../libtool: line 1144: X-I.: not found
../../libtool: line 1144: X-I../..: not found
../../libtool: line 1144: X-I/usr/local/include/boost-1_34_1: not found
../../libtool: line 1144: X-I./src: not found
../../libtool: line 1144: X-D__BYTE_ORDER=__BIG_ENDIAN: not found
../../libtool: line 1144: X-DAF_LOCAL=AF_UNIX: not found
../../libtool: line 1144: X-Wall: not found
../../libtool: line 1144: X-g: not found
../../libtool: line 1144: X-O2: not found
../../libtool: line 1144: X-MT: not found
../../libtool: line 1144: XThrift.lo: not found
../../libtool: line 1144: X-MD: not found
../../libtool: line 1144: X-MP: not found
../../libtool: line 1144: X-MF: not found
../../libtool: line 1144: X.deps/Thrift.Tpo: not found
../../libtool: line 1144: X-c: not found
../../libtool: line 1196: XThrift.lo: not found
../../libtool[1201]: libtool: compile: cannot determine name of
library object from `': not found [No such file or directory]
make[3]: *** [Thrift.lo] Error 1
make[3]: Leaving directory `/usr/share/src/thrift-0.2.0/lib/cpp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/share/src/thrift-0.2.0/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/share/src/thrift-0.2.0'
make: *** [all] Error 2


-- 
Phillip B Oldham
[email protected]
+44 (0) 7525 01 09 01

Reply via email to