LinuxSir.cn,穿越时空的Linuxsir!

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

lyx1.3.4如此折腾我。

[复制链接]
发表于 2004-3-17 23:14:23 | 显示全部楼层 |阅读模式
看见lyx1.3.4出来了,心一热。
赶快down下来。
configure &&make&& make install
阿?
居然报错?
缺少xforms0.95以上的库。
到处找,搞了个bxforms0.89库回来。编译安装,还是不行。
在lib下倒是有forms。so。这是imakefile里面的配置。
可是没有xforms.so
以为编写者写错了,手动ln -s forms.so xforms.so
再来编译lyx。还是不行。
难道那个bxforms有错?找啊找。天啊。
居然我原先找的那个bxforms和xforms是两码事,唉,重新down下来。
tz,./configure
啊?不对。
看看00README.1st。呵呵,居然要xmkmf -a &&make && make install &&make
install.man
来安装。
唉,照着做吧。
又报错,include GL/glx.h和include GL/gl.h报错,无此文件。
倒,居然连OpenGL都没有。不可能哦。
到opengl.org上看,居然没有opengl的头文件。我上哪儿找去呢?
郁闷!
晚上没事用Mozzila在/usr/share/doc/下面瞎逛,突然看见,有个
NVIDIA_GLX-1.0啊?怎么有这个呢?赶快文件类型*.*啊哈!乖乖gl.h和glx.h就
躺在GL的下面,“山穷水尽疑无路,柳暗花明又一村!”这是我才突然想起
http://www.opengl.org/applications/installing.html上有句话:
Q. What do I need to install?

A.If OpenGL is not working for you correctly and your PC or laptop
does have an OpenGL-savvy graphics card, all you should need to do is
install the latest OpenGL driver from your graphics card
manufacturer. Simply go to your graphics card manufacturer's website
and download and install their latest OpenGL driver.
这下就好了。
赶快cp -r GL /usr/include/
然后继续编译xforms,lyx1.3.4顺利搞定。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-3-17 23:23:24 | 显示全部楼层

谢谢分享!

还是头一次看到 WYSIWYG 的 LaTeX 前端,
不过为什么不用 APT 呢?
#apt-get install lyx
就可以了啊?
发表于 2004-3-17 23:23:28 | 显示全部楼层

这是我当时做的笔记

Prerequisities

    * xforms

For the current lyx frontend is built on xforms, You should have xforms installed. For CJK, also it should be patched, you can get the patch file from ftp://cellular.phys.pusan.ac.kr/CJK-LyX/xforms/

    * CJK-lyx

It is obviously neccessary. Get it from ftp://cellular.phys.pusan.ac.kr/CJK-LyX/xforms/
Installation

    * Install xforms

  1. $ alien xforms-1.0-i18n_7.src.rpm
  2. $ dpkg-deb -x xforms_1.0-1_i386.deb ./xform-1.0
  3. $ cd xform-1.0
  4. $ tar zxvf xforms-1.0-release.tgz
  5. $ cd xforms-1.0-release
  6. $ patch -p1 <../xforms-1.0-i18n_7.patch
  7. $ xmkmf -a
  8. $ make
  9. $ make install
复制代码

    * Install CJK-lyx

  1. $ tar zxvf CJK-LyX-xforms-1.3.4-src.tar.gz
  2. $ cd CJK-LyX-xforms-1.3.4
  3. $ ./configure --with-extra-lib=/usr/X11R6/lib --with-extra-inc=/usr/X11R6/include
  4. $ make
  5. $ make install
复制代码

Configuration

    * Create your own config files

  1. cp /usr/share/lyx/lyxrc.defaults ~/.lyx/
  2. cp /usr/share/lyx/lyxrc.example ~/.lyx/
  3. cd ~/.lyx
  4. mv lyxrc.example lyxrc
复制代码

    * Edit the config file, Add the following lines to the end of lyxrc.defaults

  1. \screen_font_i18n1_gothic "-*-simsun"
  2. \screen_font_i18n1_normal "-*-simsun"
  3. \screen_font_i18n1_encoding "gbk-0"
  4. \screen_font_i18n2_gothic "-*-simsun"
  5. \screen_font_i18n2_normal "-*-simsun"
  6. \screen_font_i18n2_encoding "gbk-0"
复制代码

    * Append the following lines to lyxrc

  1. #
  2. # CHINESE SUPPORT SECTION ##################
  3. #
  4. # use CJK Package
  5. \language_auto_begin false
  6. \language_auto_end false
  7. \language_command_begin "\begin{CJK*}{GBK}{song}"
  8. \language_command_end "\end{CJK*}"
  9. \language_package "\usepackage{CJK}"
复制代码

Then start your lyx and test Chinese.
Have fun.
发表于 2004-3-18 00:51:18 | 显示全部楼层

精华呀!

精华
发表于 2004-3-18 07:57:07 | 显示全部楼层
lyx还有个qt界面,比xforms漂亮一点。
发表于 2004-3-18 08:21:51 | 显示全部楼层
在我的电脑上lyx超级慢
 楼主| 发表于 2004-3-19 21:30:15 | 显示全部楼层
就是,lyx同时提供qt和xforms两个前端的源码。
可以根据需要选择qt和xforms来编译。由于qt库的版权问题,我没有选用qt,正因为如此我连kde都没有。
发表于 2004-3-19 21:50:04 | 显示全部楼层
QT有什么版权问题,搞不懂老是抓主这些不放。

另Lyx在我的机器上很快,还可以输出为DocBook哦,当初就是看中他这个的,虽然不是很理想。它不能直接打开DocBook,:p
 楼主| 发表于 2004-3-19 21:54:43 | 显示全部楼层
萝卜青菜,各有所爱,
你喜欢qt,lyx有基于qt库的源码,你可以自己安装,或者apt-get install lyx
发表于 2004-3-19 22:00:37 | 显示全部楼层
texmacs更慢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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