今天,在家里把学习日记的开发环境安上了

  第二次安,有点门路了,大部分安装离开参考资料能搞定了。发现我还不会很好的使用进入linux殿堂的man命令。

  这次的安装共享了windows2000下的mysql数据目录,需要新加一个用户:dbuser@localhost.localdomain才能使学习日记运行起来。而且还需要把新安装的linux版本的数据目录里的一个localhost.localdomain.pid文件拷入原来的windows下的mysql数据目录才行。

  本来想共享windows2000下的eclipse中的学习日记工程,可是把它导入后发现WEB-INF目录名变成了小写。在操作系统文件目录窗口中看windows2000下的目录名还是大写,搞不懂了(也许是在linux中装载windows文件系统时在eclipse2.1中的形成的一个bug?这有待以后进一步验证)。只得从cvs库中重新导入才解决问题。

  mysql4.0.17的两个rpm包是不能改变安装目录的,也就是说是:not relocateable。并不能像帖子(mysql的rpm包默认安装路径问题;RPM命令手册(转帖两篇)http://www.123go.org.cn/disDiaryContentAction.do?searchDiaryID=1767&goalID=1767&naviStr=a10ac0ad0)中说的那样可以改变安装目录。

  另外,在linux下的eclipse2.1中安装那个EclipseColorer-take5_0.6.0(net.sf.colorer_0.6.0)语法高亮的插件,必须把其中的colorer目录拷入/usr/local/share才能正常使用(只拷入其中的catalog.xml文件不行),否则会报找不到catalog.xml文件的错(Error in initialization of native part of the Colorer library. This can be caused by absent net_sf_colorer.dll (libnet_sf_colorer.so) in paths of java machine. Or, colorer can't find catalog.xml file, which must be placed in '%PLUGIN_DIR%/colorer/catalog.xml' ParserFactoryException: Can't find suitable catalog.xml file. Check your program settings.)。

  colorer的readme文件:(文件名:readme)

 

  This archive contains Java Edition of the Colorer-take5 library.

  It includes Java interfaces to the Library and an experimental

  plugin for the Eclipse platform

    http://www.eclipse.org

  To install plugin into Eclipse you have to copy content

  of this directory into %ECLIPSE_HOME%/plugins directory.

  This package contains plugin's native library, compiled for

  win32 ant Linux platforms. For Linux issues, read LINUX file.

  To compile Colorer-take5 library to use with MacOSX systems,

  read MACOS file.

  If you are using Colorer with other tools/applications (and have

  your own HRC base), you can specify path to the 'catalog.xml' file

  with one of the standard locations:

    - %HOME%/.colorer5catalog (or %HOMEPATH%, %SYSTEMROOT%)

    - %COLORER5CATALOG%

    - /usr/share/colorer/catalog.xml

  In this case you can delete 'colorer' folder of the EclipseColorer

  package, and it will start to read configuration data from the global source.

  All files in this package are subject to the Mozilla Public License 1.1

  You can find detailed description and license agreement on

    http://colorer.sf.net/

  For more information see 'index.html' in the 'doc' folder of

  the Colorer Library package distribution or visit

    http://colorer.sf.net/

  Thanks for using Colorer,

    Igor Russkih <cail@nm.ru>

  其中的linux说明文件:(文件名:linux)

 

  Colorer Library is not yet fully tested on Linux systems,

  and there can be some problems.

  This version of Colorer Library comes with the native part, compilied

  with GNU GCC 3.2 c++ compiler under Mandrake Linux 9.0.

  I've tested it with Eclipse 2.1 (gtk) under jdk1.4.1 and it works fine.

  However, you can encounter some problems with library dependencies.

从下面这个文件来看,也许把eclipse安在目录:/usr/share下面就会正常也说不一定?(文件名:ColorDemo.sh)

#!/bin/bash

# Self runnable version of Colorer library JNI interface

# Uses SWT API.

# To use it, please provide full path to colorer/catalog.xml file

# in %HOME%/.colorer5catalog  file.

ECLIPSE_HOME=/usr/share/eclipse

ECLIPSE_VERSION=2.1.0

# Requires inclusion of additional jars:

ECLIPSE_TOOLKIT=gtk

#ECLIPSE_TOOLKIT=motif

OS=linux

ARCH=x86

SWT_JAR=${ECLIPSE_HOME}/plugins/org.eclipse.swt.${ECLIPSE_TOOLKIT}_${ECLIPSE_VERSION}/ws/${ECLIPSE_TOOLKIT}/swt.jar:${ECLIPSE_HOME}/plugins/org.eclipse.swt.${ECLIPSE_TOOLKIT}_${ECLIPSE_VERSION}/ws/${ECLIPSE_TOOLKIT}/swt-pi.jar

SWT_LIB=${ECLIPSE_HOME}/plugins/org.eclipse.swt.${ECLIPSE_TOOLKIT}_${ECLIPSE_VERSION}/os/${OS}/${ARCH}

env LD_LIBRARY_PATH=os/${OS}/${ARCH}:${SWT_LIB}:${LD_LIBRARY_PATH} java -classpath colorer.jar:${SWT_JAR} net.sf.colorer.swt.ColorerDemo

One thought on “今天,在家里把学习日记的开发环境安上了”

  1.   在windows下如果一个文件或目录名称是WEB-INF,挂载在linux下名称就变成了web-inf;就是从挂载的分区中把相应的文件或目录复制到linux分区中还是如此。

      在挂载的windows分区中建一个大写名称的目录,马上就出现一个大写和一个小写的两个目录,在其中一个目录中添加一个文件后,又合成了一个小写的目录;如果新建的目录名称大小写混合就会报错。

      不过有的原来的文件或目录名称本来就是大小写混合的,在linux下显示正常。

      搞不懂。

     

Comments are closed.