uranyang 发表于 2005-9-10 23:12:34

怎样在红旗5.0下编译安装skim(scim)输入法?

我先编译scim成功,可我编译skim时,配制成功,可能编译发生错误,不能成功,是不是缺少其他东西。

fox_eagle2003 发表于 2005-9-10 23:26:59

把出错的提示贴出来啊......
只有看了提示,我们才知道是什么回事

fox_eagle2003 发表于 2005-9-10 23:28:32

./configure真的全通过了?不太可能吧
如果configure成功了
应该就可以成功的安装了

lanzinc 发表于 2005-9-11 16:55:15

红旗5.0默认的输入法不就是scim吗?

uranyang 发表于 2005-9-11 16:58:16

我只想学学编译高版本的scim输入法。我编译scim-1.4.0成功。
可我在编译scim-tables-0.5.3失败,具体如下:
# cd scim-tables-0.5.3
# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking build system type... i686-pc-linux
checking host system type... i686-pc-linux
checking for ranlib... ranlib
checking for library containing strerror... none required
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E可
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for signed... yes
checking for inline... inline
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for off_t... yes
checking for size_t... yes
checking for long long... yes
checking for long double... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking whether printf() supports POSIX/XSI format strings... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for stdint.h... (cached) yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for ptrdiff_t... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for asprintf... yes
checking for fwprintf... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for snprintf... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for wcslen... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for __fsetlocking... yes
checking whether _snprintf is declared... no
checking whether _snwprintf is declared... no
checking whether feof_unlocked is declared... yes
checking whether fgets_unlocked is declared... no
checking whether getc_unlocked is declared... yes
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 1.875, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if gcc static flagworks... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking which extension is used for loadable modules... .so
checking which variable specifies run-time library path... LD_LIBRARY_PATH
checking for the default library search path... /lib /usr/lib /usr/X11R6/lib /usr/lib/qt-3.3/lib
checking for objdir... .libs
checking whether libtool supports -dlopen/-dlpreopen... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen in -ldl... (cached) yes
checking for dlerror... yes
checking for _ prefix in compiled symbols... no
checking whether deplibs are loaded by dlopen... yes
checking for argz.h... (cached) yes
checking for error_t... yes
checking for argz_append... yes
checking for argz_create_sep... yes
checking for argz_insert... yes
checking for argz_next... yes
checking for argz_stringify... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for malloc.h... (cached) yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for unistd.h... (cached) yes
checking dl.h usability... no
checking dl.h presence... no
checking for dl.h... no
checking sys/dl.h usability... no
checking sys/dl.h presence... no
checking for sys/dl.h... no
checking dld.h usability... no
checking dld.h presence... no
checking for dld.h... no
checking mach-o/dyld.h usability... no
checking mach-o/dyld.h presence... no
checking for mach-o/dyld.h... no
checking for string.h... (cached) yes
checking for strchr... yes
checking for strrchr... yes
checking for memcpy... yes
checking for memmove... yes
checking for strcmp... yes
checking for closedir... yes
checking for opendir... yes
checking for readdir... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for an ANSI C-conforming const... (cached) yes
checking for inline... (cached) inline
checking for size_t... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking for scim >= 1.2.0... Package scim was not found in the pkg-config search path.
Perhaps you should add the directory containing `scim.pc'
to the PKG_CONFIG_PATH environment variable
No package 'scim' found

configure: error: Library requirements (scim >= 1.2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

我不知道具体怎样设置。

fakeroot 发表于 2005-9-11 18:13:17

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig,总之就是scim.pc所在路径。

uranyang 发表于 2005-9-11 21:40:54

谢谢,明天我到办公室试试,又学到不少知识。

uranyang 发表于 2005-9-12 08:23:36

# cd skim-1.4.2
# ./configure
Checking for Python               :/usr/bin/python
Checking for SCons                :Use Bundled scons.
Checking for kde-config         :kde-config was found
Checking for kde version          :3.2.1
Checking for the qt library       :qt is in /usr/lib/qt-3.3
Checking for uic                  :uic was found as /usr/lib/qt-3.3/bin/uic
Checking for moc                  :moc was found as /usr/lib/qt-3.3/bin/moc
Checking for the qt includes      :ok /usr/lib/qt-3.3/include/
Checking for the kde includes   :ok /usr/include
# make
g++ -DNO_CONFIG_H -I/usr/include -I/usr/lib/qt-3.3/include/ -DENABLE_DEBUG=0 -DQT_THREAD_SUPPORT -D_REENTRANT -fPIC -O2 -DNDEBUG -DNO_DEBUG -DQT_NO_TRANSLATION-I. -Iutils -c -o utils/scimkdesettings.os utils/scimkdesettings.cpp
utils/scimkdesettings.cpp: In constructor `ScimKdeSettings::ScimKdeSettings()':
utils/scimkdesettings.cpp:106: error: expected `)' before "Always"
utils/scimkdesettings.cpp:139: error: expected `)' before "Use"
utils/scimkdesettings.cpp:139:245: warning: character constant too long for itstype
utils/scimkdesettings.cpp:147: error: expected `)' before "from"
utils/scimkdesettings.cpp:174: error: missing terminating " character
utils/scimkdesettings.cpp:175: error: `nment' undeclared (first use this function)
utils/scimkdesettings.cpp:175: error: (Each undeclared identifier is reported only once for each function it appears in.)
utils/scimkdesettings.cpp:175: error: missing terminating " character
scons: *** Error 1
make: *** 错误 2

uranyang 发表于 2005-9-12 08:24:06

# cd skim-1.4.2
# ./configure
Checking for Python               :/usr/bin/python
Checking for SCons                :Use Bundled scons.
Checking for kde-config         :kde-config was found
Checking for kde version          :3.2.1
Checking for the qt library       :qt is in /usr/lib/qt-3.3
Checking for uic                  :uic was found as /usr/lib/qt-3.3/bin/uic
Checking for moc                  :moc was found as /usr/lib/qt-3.3/bin/moc
Checking for the qt includes      :ok /usr/lib/qt-3.3/include/
Checking for the kde includes   :ok /usr/include
# make
g++ -DNO_CONFIG_H -I/usr/include -I/usr/lib/qt-3.3/include/ -DENABLE_DEBUG=0 -DQT_THREAD_SUPPORT -D_REENTRANT -fPIC -O2 -DNDEBUG -DNO_DEBUG -DQT_NO_TRANSLATION-I. -Iutils -c -o utils/scimkdesettings.os utils/scimkdesettings.cpp
utils/scimkdesettings.cpp: In constructor `ScimKdeSettings::ScimKdeSettings()':
utils/scimkdesettings.cpp:106: error: expected `)' before "Always"
utils/scimkdesettings.cpp:139: error: expected `)' before "Use"
utils/scimkdesettings.cpp:139:245: warning: character constant too long for itstype
utils/scimkdesettings.cpp:147: error: expected `)' before "from"
utils/scimkdesettings.cpp:174: error: missing terminating " character
utils/scimkdesettings.cpp:175: error: `nment' undeclared (first use this function)
utils/scimkdesettings.cpp:175: error: (Each undeclared identifier is reported only once for each function it appears in.)
utils/scimkdesettings.cpp:175: error: missing terminating " character
scons: *** Error 1
make: *** 错误 2

uranyang 发表于 2005-9-12 08:24:52

# cd skim-1.4.2
# ./configure
Checking for Python               :/usr/bin/python
Checking for SCons                :Use Bundled scons.
Checking for kde-config         :kde-config was found
Checking for kde version          :3.2.1
Checking for the qt library       :qt is in /usr/lib/qt-3.3
Checking for uic                  :uic was found as /usr/lib/qt-3.3/bin/uic
Checking for moc                  :moc was found as /usr/lib/qt-3.3/bin/moc
Checking for the qt includes      :ok /usr/lib/qt-3.3/include/
Checking for the kde includes   :ok /usr/include
# make
g++ -DNO_CONFIG_H -I/usr/include -I/usr/lib/qt-3.3/include/ -DENABLE_DEBUG=0 -DQT_THREAD_SUPPORT -D_REENTRANT -fPIC -O2 -DNDEBUG -DNO_DEBUG -DQT_NO_TRANSLATION-I. -Iutils -c -o utils/scimkdesettings.os utils/scimkdesettings.cpp
utils/scimkdesettings.cpp: In constructor `ScimKdeSettings::ScimKdeSettings()':
utils/scimkdesettings.cpp:106: error: expected `)' before "Always"
utils/scimkdesettings.cpp:139: error: expected `)' before "Use"
utils/scimkdesettings.cpp:139:245: warning: character constant too long for itstype
utils/scimkdesettings.cpp:147: error: expected `)' before "from"
utils/scimkdesettings.cpp:174: error: missing terminating " character
utils/scimkdesettings.cpp:175: error: `nment' undeclared (first use this function)
utils/scimkdesettings.cpp:175: error: (Each undeclared identifier is reported only once for each function it appears in.)
utils/scimkdesettings.cpp:175: error: missing terminating " character
scons: *** Error 1
make: *** 错误 2
对不起,刚才以为没有发出,连发三次造成的。
我安装了scim-1.4.0和scim-tables-0.5.3后,我编译skim-1.4.2,出现上述问题,不知怎样解决?

fox_eagle2003 发表于 2005-9-12 14:19:32

似乎是编译出错了
有可能是GCC编译器兼容的问题
安装文档上说需要版本是多少的GCC?

uranyang 发表于 2005-9-12 20:54:52

但我安装红旗5.0所带的skim-1.2.8却可以,我也不知什么原因,我等下看看源码所要求的。

我办公室电脑是这样,scim-1.4.0和scim-tables-0.5.3是我编译的,而skim-1.2.8是红旗5.0所带的rpm文件,我安装后可以启动输入法,但我编译skim-1.4.2却不行,原因如上。谢谢各位的指导。

liuspider 发表于 2005-9-13 00:23:07

红旗的 KDE 是经过他们很大修改的,skim 也是,所以你不能编译我可以想象

问问 红旗 的人吧,或者提提要求让他们升级到最新的 skim

uranyang 发表于 2005-9-13 07:12:07

所以linux的易用显示不出来,由于各厂商的修改,许多软件不能正常安装,何况普通用户。

mandrakechina 发表于 2005-9-13 14:20:48

如果一个软件在某个发行版上编译不出,在其它发行版上一点问题都没有。So, 你应该怪谁?
页: [1] 2
查看完整版本: 怎样在红旗5.0下编译安装skim(scim)输入法?