[groonga-dev,00673] Re: ディレクトリカスタマイズでコンパイルするとINSTALL PLUGINでエラー

Back to archive index

rymysqlさん ry10m****@gmail*****
2012年 1月 16日 (月) 15:53:11 JST


須藤様

三間です。

CCとCXXをなしにするとINSTALL PLUGINいけました。
ありがとうございます。

export CFLAGS="-mtune=nocona"
./configure \
--prefix=/usr/local/groonga129


----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/groonga129/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/groonga129/lib/groonga/plugins/suggest

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------



export GROONGA_CFLAGS="-I/usr/local/groonga129/include/groonga"
export GROONGA_LIBS="-L/usr/local/groonga129/lib -lgroonga"
./configure \
 --prefix=/data-io/src/mysql-5.5.20-linux2.6-x86_64 \
 --with-mysql-source=/data-io/src/mysql-5.5.20 \
 --with-mysql-config=/data-io/src/mysql-5.5.20-linux2.6-x86_64/bin/mysql_config


----------------------------------------------------------------------
Libraries have been installed in:
   /data-io/src/mysql-5.5.20-linux2.6-x86_64/lib/plugin

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

# ldd /usr/local/groonga129/lib/libgroonga.so
        linux-vdso.so.1 =>  (0x00007fff485fd000)
        librt.so.1 => /lib64/librt.so.1 (0x00002b090a7c8000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b090a9d1000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00002b090abed000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00002b090ae05000)
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002b090b009000)
        libm.so.6 => /lib64/libm.so.6 (0x00002b090b30a000)
        libc.so.6 => /lib64/libc.so.6 (0x00002b090b58d000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b090b8e5000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003250200000)

# ldd /data-io/src/mysql-5.5.20-linux2.6-x86_64/lib/plugin/ha_groonga.so
        linux-vdso.so.1 =>  (0x00007fff68ffd000)
        libgroonga.so.0 => /usr/local/groonga129/lib/libgroonga.so.0
(0x00002b275def2000)
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002b275e442000)
        libm.so.6 => /lib64/libm.so.6 (0x00002b275e742000)
        libc.so.6 => /lib64/libc.so.6 (0x00002b275e9c5000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b275ed1e000)
        librt.so.1 => /lib64/librt.so.1 (0x00002b275ef2c000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b275f135000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00002b275f351000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00002b275f569000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003250200000)


root @ localhost:(none)>INSTALL PLUGIN groonga SONAME 'ha_groonga.so';
Query OK, 0 rows affected (0.01 sec)

root @ localhost:(none)>CREATE FUNCTION last_insert_grn_id RETURNS INTEGER
soname 'ha_groonga.so';
Query OK, 0 rows affected (0.00 sec)



groonga-dev メーリングリストの案内
Back to archive index