LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2450|回复: 1

如何在gedit的编译中添加对python的支持

[复制链接]
发表于 2008-9-30 15:50:52 | 显示全部楼层 |阅读模式
我安装了一个gedit的latex插件,这个插件需要python支持,

插件主页:http://live.gnome.org/Gedit/LaTeXPlugin

通过gnome-ternimal打开一个tex文件,发现如下提示,看来是gedit编译的时候没有添加对python的支持,

Cannot load Python plugin '/home/fender/.gnome2/gedit/plugins/LaTeXPlugin.gedit-plugin' since gedit was not compiled with Python support.

于是我就:

cd /usr/ports/editor/gedit

make deinstall

make WITH_PYTHON=yes

make install clean

结果还是出现这个提示,谁知道如何添加对python的支持呢?

QUOTE:
make configure
===>  Vulnerability check disabled, database not found
===>  Extracting for gedit-2.22.3_1
=> MD5 Checksum OK for gnome2/gedit-2.22.3.tar.bz2.
=> SHA256 Checksum OK for gnome2/gedit-2.22.3.tar.bz2.
===>  Patching for gedit-2.22.3_1
===>   gedit-2.22.3_1 depends on file: /usr/local/bin/libtool - found
===>  Applying FreeBSD patches for gedit-2.22.3_1
===>   gedit-2.22.3_1 depends on file: /usr/local/libdata/pkgconfig/iso-codes.pc - found
===>   gedit-2.22.3_1 depends on executable: gmake - found
===>   gedit-2.22.3_1 depends on file: /usr/local/bin/libtool - found
===>   gedit-2.22.3_1 depends on file: /usr/local/bin/intltool-extract - found
===>   gedit-2.22.3_1 depends on file: /usr/local/libdata/pkgconfig/gnome-mime-data-2.0.pc - found
===>   gedit-2.22.3_1 depends on executable: pkg-config - found
===>   gedit-2.22.3_1 depends on executable: update-desktop-database - found
===>   gedit-2.22.3_1 depends on file: /usr/local/libdata/pkgconfig/gnome-doc-utils.pc - found
===>   gedit-2.22.3_1 depends on shared library: enchant.1 - found
===>   gedit-2.22.3_1 depends on shared library: intl - found
===>   gedit-2.22.3_1 depends on shared library: esd.2 - found
===>   gedit-2.22.3_1 depends on shared library: atk-1.0.0 - found
===>   gedit-2.22.3_1 depends on shared library: gailutil.18 - found
===>   gedit-2.22.3_1 depends on shared library: gconf-2.4 - found
===>   gedit-2.22.3_1 depends on shared library: glib-2.0.0 - found
===>   gedit-2.22.3_1 depends on shared library: gnomevfs-2.0 - found
===>   gedit-2.22.3_1 depends on shared library: gtk-x11-2.0.0 - found
===>   gedit-2.22.3_1 depends on shared library: gtksourceview-2.0.0 - found
===>   gedit-2.22.3_1 depends on shared library: art_lgpl_2.5 - found
===>   gedit-2.22.3_1 depends on shared library: bonobo-2.0 - found
===>   gedit-2.22.3_1 depends on shared library: bonoboui-2.0 - found
===>   gedit-2.22.3_1 depends on shared library: glade-2.0.0 - found
===>   gedit-2.22.3_1 depends on shared library: gnome-2.0 - found
===>   gedit-2.22.3_1 depends on shared library: gnomecanvas-2.0 - found
===>   gedit-2.22.3_1 depends on shared library: gnomeui-2.0 - found
===>   gedit-2.22.3_1 depends on shared library: IDL-2.0 - found
===>   gedit-2.22.3_1 depends on shared library: xml2.5 - found
===>   gedit-2.22.3_1 depends on shared library: xslt.2 - found
===>   gedit-2.22.3_1 depends on shared library: ORBit-2.0 - found
===>   gedit-2.22.3_1 depends on shared library: pango-1.0.0 - found
===>  Configuring for gedit-2.22.3_1
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gconftool-2... /usr/local/bin/gconftool-2
checking for style of include used by gmake... GNU
checking for gcc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking dependency style of cc... gcc3
checking for intltool >= 0.35.0... 0.37.1 found
checking for xgettext... /usr/local/bin/xgettext
checking for msgmerge... /usr/local/bin/msgmerge
checking for msgfmt... /usr/local/bin/msgfmt
checking for perl... /usr/bin/perl
checking for XML:arser... ok
checking build system type... amd64-portbld-freebsd7.0
checking host system type... amd64-portbld-freebsd7.0
checking for a sed that does not truncate output... /usr/local/bin/gsed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by cc... /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 how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking dependency style of c++... gcc3
checking how to run the C++ preprocessor... c++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... (cached) 262144
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd7.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by c++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC
checking if c++ PIC flag -fPIC works... yes
checking if c++ static flag -static works... yes
checking if c++ supports -c -o file.o... yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd7.0 ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to build gtk-doc documentation... no
checking for gtkdoc-check... no
checking for library containing strerror... none required
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking dependency style of cc... (cached) gcc3
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether gmake sets $(MAKE)... (cached) yes
checking for gzip... /usr/bin/gzip
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... no
checking for bindtextdomain in -lintl... yes
checking for ngettext in -lintl... yes
checking for dgettext in -lintl... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/local/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/local/bin/msgfmt
checking for xgettext... (cached) /usr/local/bin/xgettext
checking for ENCHANT... yes
checking whether iso-codes has iso-639 and iso-3166 domains... yes
checking whether libattr support is requested... autodetect
checking for attr_copy_fd in -lattr... no
configure: WARNING: libattr not found, disabling libattr support
checking for GEDIT... yes
Using config source xml:merged:/usr/local/etc/gconf/gconf.xml.defaults for schema installation
Using $(sysconfdir)/gconf/schemas as install directory for schema files
checking whether Python support is requested... no
checking for glib-genmarshal... /usr/local/bin/glib-genmarshal
checking for glib-mkenums... /usr/local/bin/glib-mkenums
checking what warning flags to pass to the C compiler... -Wall -Wmissing-prototypes
checking what language compliance flags to pass to the C compiler...
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bindings/Makefile
config.status: creating bindings/python/Makefile
config.status: creating data/gedit.desktop.in
config.status: creating data/gedit-bugreport.sh
config.status: creating data/gedit.pc
config.status: creating data/Makefile
config.status: creating docs/Makefile
config.status: creating docs/reference/Makefile
config.status: creating gedit/dialogs/Makefile
config.status: creating gedit/Makefile
config.status: creating help/Makefile
config.status: creating help/eu/Makefile
config.status: creating help/ro/Makefile
config.status: creating pixmaps/Makefile
config.status: creating plugins/changecase/Makefile
config.status: creating plugins/docinfo/Makefile
config.status: creating plugins/externaltools/Makefile
config.status: creating plugins/externaltools/tools/Makefile
config.status: creating plugins/externaltools/data/Makefile
config.status: creating plugins/externaltools/scripts/Makefile
config.status: creating plugins/filebrowser/Makefile
config.status: creating plugins/indent/Makefile
config.status: creating plugins/Makefile
config.status: creating plugins/modelines/Makefile
config.status: creating plugins/pythonconsole/Makefile
config.status: creating plugins/pythonconsole/pythonconsole/Makefile
config.status: creating plugins/sample/Makefile
config.status: creating plugins/snippets/Makefile
config.status: creating plugins/snippets/snippets/Makefile
config.status: creating plugins/snippets/data/Makefile
config.status: creating plugins/snippets/data/lang/Makefile
config.status: creating plugins/sort/Makefile
config.status: creating plugins/spell/Makefile
config.status: creating plugins/taglist/Makefile
config.status: creating plugins/time/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing intltool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands


Configuration:

        Source code location:        .
        Compiler:                cc
        Libattr enabled:        no
        Python Plugins Support: no
        Spell Plugin enabled:        yes



QUOTE:
make config
===> No options to configure
发表于 2008-10-27 13:48:21 | 显示全部楼层
插件包是不是要先下载下来阿。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表