当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 5 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [wiki]EclipseSubversion
帖子发表于 : 2005-10-01 12:08 
论坛管理员

注册: 2005-03-27 0:06
帖子: 10110
系统: Ubuntu 12.04
送出感谢: 7
接收感谢: 127
See : SubVersion

See : EclipseIDE
Subversion support

First of all, install subversion package with ; sudo apt-get install subversion
Subclipse (TOFIX)

Subclipse is an Subversion client, working like the integrated CVS client. See the [WWW] official sublipse home page for up to date informations.

*

In Eclipse, go into the menus : Help -> Software Updates -> Find and Install...
*

Search for new features to install
*

Add a new Remote Site with URL: http://subclipse.tigris.org/update
*

Next, next, next
*

Restart Eclipse

Now Subclipse needs a subversion java binding, named javahl, that is not installed with the subversion package.
libsvn-javahl for Ubuntu

I followed the instructions on this site to compile my own libsvn-javahl (which is available at [WWW] http://schuerrer.org/uploads/libsvn-jav ... 3_i386.deb) and afterwards only had to make a symbolic link from /usr/lib/libsvnjavahl-1.so to /usr/lib/j2sdk1.5-sun/jre/lib/i386/client/libsvnjavahl-1.so. Then I replaced /opt/eclipse/plugins/org.tigris.subversion.subclipse.core_0.9.31/svnjavahl.jar with /usr/share/java/svn-javahl.jar and I'm still getting a JFace error. Maybe Subclipse 0.9.31 doesn't work witch Eclipse 3.1M7?
Subversion and Javahl

Javahl is the subversion <-> java library.

This installation method doesn't work, but here is my output. I hope somebody will be able to complete it and make it work.

I tried to follow the first part of this [WWW] Howto install SvnUp, but javac doesn't find the sources. I have Java 1.5 installed. Anyone ?

*

Go in your build directory, I use ~/builds
*

download subversion sources : apt-get source subversion
*

extract the sources : tar xzf subversion_1.0.9.orig.tar.gz
*

go in the folder and extract again : tar zxvf subversion_1.0.9.tar.gz
*

go in the folder and run : ./autogen.sh
*

run : ./configure --prefix=/usr
*

run : make
*

go in subfolder : subversion/bindings/java/javahl
*

run again : ./autogen.sh
*

run (not sure if it's right) : ./configure --prefix=/usr --with-jdk=/usr/lib/j2sdk1.5-sun
*

run : make

This is where it doesn't work, here is the output :

Making all in src
make[1]: Entering directory `/home/zimba/builds/subversion-1.0.9/subversion-1.0.9/subversion/bindings/java/javahl/src'
CLASSPATH=../cls:./../cls:$CLASSPATH /usr/lib/j2sdk1.5-sun/bin/javac -d ../cls
javac: no source files
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system

make[1]: *** [class.stamp] Error 2
make[1]: Leaving directory `/home/zimba/builds/subversion-1.0.9/subversion-1.0.9/subversion/bindings/java/javahl/src'
make: *** [all-recursive] Error 1

How I did it

Okay, this is NOT Ubuntu Linux (I'm using debian unstable) so forgive me if this doesn't work for you. Here are the steps I used:

*

Go into your build directory.
*

apt-get build-dep subversion get the packages you need to build subversion
*

apt-get source subversion get the sources
*

cd subversion-1.0.9/ cd into the directory (apt-get should have created this for you)
*

dpkg-buildpackage build the package... this takes a LONG TIME, since they have so many tests to verify the build worked correctly
*

cd build-tree/subversion-1.0.9/subversion/bindings/java/javahl This is where the javahl bindings are
*

./autogen.sh I used automake-1.8! apt-get that if you want your build to be as close to mine as possible!
*

./configure --prefix=/usr/local/svnjavahl --with-jdk=/usr/lib/j2sdk1.5-sun You can obviously specify your own prefix and jdk. I specified that one because I don't like locally-installed libraries intermingling with the debian-installed libraries.
*

make Build it.
*

make install Install it.

(Note that I installed it to a non-standard location. If you want to use the library from that location, you need to add /usr/local/svnjavahl/lib to your LD_LIBRARY_PATH environment variable.)

I can confirm that this version works by running a small test program. I can NOT, however, get it to work in eclipse. When I try, I get this error (once for each project that uses subversion):

Unhandled event loop exception
Reason:
ctNative

So, for now I'm just leaving the Subclipse plugin to use the command line. It's slow, but at least it actually does something.

If I understand well, the problem you've got is because Subclipse is built against some particular version of javahl and subversion (see [WWW] http://subclipse.tigris.org/) Current version should work better with subversion 1.1+ Thanks a lot for your help, I hope we'll soon have something working well.

Hmm, I managed to build a subversion 1.1.1 w/ javahl library (using the packages out of debian 'experimental') but I still got the same problem. Sad. Thanks for the tip on that, though, but it seems like I'm having bigger problems.

From EmilWilmanski Mon Dec 13 11:29:57 +0000 2004 From: Emil Wilmanski Date: Mon, 13 Dec 2004 11:29:57 +0000 Subject: I done it... Message-ID: <[MAILTO] 20041213112957+0000@www.ubuntulinux.org>

Big thanx for your article... I need javahl to eclipse plugin... How I do this: We nead new version of subversion (1.1.1 from experimental source) edit subversion-1.1.1/debian/rules line 39 add "--enable-javahl" (to add configure option to confflags, dont forget "\" at the end of prev. line) compile all using dpkg-buildpackage after it cd subversion-1.1.1/build-tree/subversion-1.1.1 make javahl I do this without problems... in subversion-1.1.1/subversion/bindings/java/javahl/native/.lib we have javahl libs :)

From DagSverreSeljebotn Tue Jan 11 08:36:12 +0000 2005 From: Dag Sverre Seljebotn Date: Tue, 11 Jan 2005 08:36:12 +0000 Subject: Native Java Message-ID: <20050111083612+0000@[WWW] https://www.ubuntulinux.org>

I've had success with the Pure Java Subversion Client - [WWW] http://tmate.org/svn/

Some small glitches, to import a project through the svn view do: - Right-click, import it. - It will (may?) fail. Go back to svn view, find the rep that was now opened for that project, and reenter login information. - It will now succed, but a manual refresh of the project might be necesarry for any files to appear. Then reopen the project to hide the .svn-folders...
working subversion with javahl

From MaciejFreudenheim Sun Mar 13 02:03:35 +0000 2005 From: Maciej Freudenheim Date: Sun, 13 Mar 2005 02:03:35 +0000 Subject: Everything works (using native javahl)! Message-ID: <20050313020335+0000@[WWW] https://www.ubuntulinux.org>

OK, everything works now perfectly, here is what I did:

1. apt-get source subversion

2. cd subversion-1.1.1

3. edit debian/rules (f.e.: gedit debian/rules )

AND change:

ENABLE_JAVAHL=no

to:

ENABLE_JAVAHL=yes

at the beginning of the file.

ALSO search string "with-jdk" which is somewhere below, and make sure it points to your JDK. In my situation, it is:

confflags += --enable-javahl --without-jikes --with-jdk=/usr/lib/sun-j2sdk1.5.0

4. sudo dpkg-buildpackage

If it stops complaining about missing dependencies just install them with sudo apt-get install and relaunch dpkg-buildpackage :) It takes long time to finish.

5. cd debian/libsvn-javahl/usr/

6. sudo cp -a * /usr I know, it's ugly way, but i haven't time to study how to build proper deb package

7. sudo ldconfig

8. launch eclipse with: $PATH_TO_YOUR_ECLIPSE_DIRECTORY/eclipse -vmargs -Djava.library.path=/usr/lib

It's important to set that java.library.path property to /usr/lib, without it Eclipse wouldn't find libsvnjavahl*.so we just installed into /usr/lib

9. install subversion plugin in Eclipse normally, like described in the beginning of that Wiki page

10. restart eclipse: everything should work, you should be able to chose javahl in preferences->team->svn :)

From JojoPaderes Mon May 9 03:51:33 +0100 2005 From: Jojo Paderes Date: Mon, 09 May 2005 03:51:33 +0100 Subject: Problem compiling Subversion with Javahl Message-ID: <20050509035133+0100@[WWW] https://www.ubuntulinux.org>

Thanks Maciej for the nice article!

I'm following the steps for compiling Subversion with Javahl support but got stuck at step #4 which is building the Debian package using dpkg-buildpackage command. I encountered an error while building the package using dpkg-buildpackage command:

checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make: *** [debian/stamp-configure] Error 1

To solve the error C++ preprocessor "/lib/cpp" fails sanity check while compiling Subversion, you need to download GCC, CPP and G++ using apt-get:

sudo apt-get install gcc cpp g++

From KrzysztofLangner Fri May 13 22:15:43 +0100 2005 From: Krzysztof Langner Date: Fri, 13 May 2005 22:15:43 +0100 Subject: javahl and JavaSVN Message-ID: <[MAILTO] 20050513221543+0100@www.ubuntulinux.org>

Instead of using javahl It is possible to install JavaSVN from [WWW] http://tmate.org/svn/. (JavaSVN is a pure java Subversion (SVN) client library). On my computer I have installed:

*

Unbuntu 5.04
*

JDK 1.5.0_3
*

Eclipse 3.0.2
*

subversion package
*

subclipse plugin
*

JavaSVN plugin

and Subversion works fine for me.

CategoryDocumentation CategoryCleanup


https://wiki.ubuntu.com/EclipseSubversion


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2005-10-14 13:08 
头像

注册: 2005-10-04 10:59
帖子: 1929
地址: 上海
送出感谢: 0 次
接收感谢: 1
参考:SubVersion

参考:EclipseIDE

Subversion支持

首先,像这样安装subversion程序包:
sudo apt-get install subversion

Subclipse (TOFIX)

Subclipse是一个可以像整合了的CVS客户端一样工作的Subversion客户端。参考[WWW] sublipse的官方主页可以得到最新的信息。
*

在Eclipse中,选择如下菜单:Help -> Software Updates -> Find and Install...
*

寻找并安装新特征
*

添加一个新的远程URL:http://subclipse.tigris.org/update
*

一直点三次“继续”
*

重新启动Eclipse

现在Subclipse需要一个叫做javahl的subversion的java 榜定, named javahl。它并不在subversion的安装包中。

适用Ubuntu的libsvn-javahl

我按照如下网址的说明来编译我自己的libsvn-javahl (你可以在这里找到 [WWW] http://schuerrer.org/uploads/libsvn-jav ... 3_i386.deb),随后只需要建立一个从/usr/lib/libsvnjavahl-1.so到/usr/lib/j2sdk1.5-sun/jre/lib/i386/client/libsvnjavahl-1.so的符号链接。接着我把/opt/eclipse/plugins/org.tigris.subversion.subclipse.core_0.9.31/svnjavahl.jar替换成 /usr/share/java/svn-javahl.jar,但是我还是得到了一个JFace错误。会不会是Subclipse 0.9.31不能与 Eclipse 3.1M7一同工作?

Subversion同Javahl

Javahl是subversion <-> java库文件

这个安装方法不成功,这里有我的结果。我希望有人能够完成它,使之能够正常工作。

我试图按照这个[WWW] Howto install SvnUp的第一部分来安装,但是javac报告说找不到源文件。我已经安装了Java 1.5。有人知道为什么吗?
*

进入你的build文件夹,我使用 ~/builds
*

下载subversion源文件:apt-get source subversion
*

把源文件解压缩:tar xzf subversion_1.0.9.orig.tar.gz
*

进入解压缩后的文件夹并且再次解压缩:tar zxvf subversion_1.0.9.tar.gz
*

进入得到的文件夹并且运行:./autogen.sh
*

运行: ./configure --prefix=/usr
*

运行: make
*

进入子目录:subversion/bindings/java/javahl
*

再次运行: ./autogen.sh
*

运行(不能确定正确与否): ./configure --prefix=/usr --with-jdk=/usr/lib/j2sdk1.5-sun
*

运行: make

到这里就不正常了,输出在这里:
Making all in src
make[1]: Entering directory `/home/zimba/builds/subversion-1.0.9/subversion-1.0.9/subversion/bindings/java/javahl/src'
CLASSPATH=../cls:./../cls:$CLASSPATH /usr/lib/j2sdk1.5-sun/bin/javac -d ../cls
javac: no source files
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system

make[1]: *** [class.stamp] Error 2
make[1]: Leaving directory `/home/zimba/builds/subversion-1.0.9/subversion-1.0.9/subversion/bindings/java/javahl/src'
make: *** [all-recursive] Error 1

我怎么解决它的

好吧,这不是一个Ubuntu Linux(我用的是Debian的不稳定版),所以请原谅我如果下面的方法对你没用。下面是我的几个步骤:

*

进入你的build文件夹。
*

apt-get build-dep subversion
取得你需要用来编译subversion的包
*

apt-get source subversion
获取源文件
*

cd subversion-1.0.9/
进入这个目录(apt-get应该已经为你建立了这个目录)
*

dpkg-buildpackage
编译安装包……这要花很长时间,因为其中有很多的测试用来确保程序能够正常地工作
*

cd build-tree/subversion-1.0.9/subversion/bindings/java/javahl
这是javahl的所在文件夹
*

./autogen.sh
我使用了automake-1.8!如果你想你的编译结果尽可能地与我的相似的话你可以用apt-get来下载它!
*

./configure --prefix=/usr/local/svnjavahl --with-jdk=/usr/lib/j2sdk1.5-sun
很显然你可以自己指定你的安装目录和jdk版本。我指定这一个因为我不喜欢本地安装的库文件和debian安装的库搅和在一起。
*

make
编译
*

make install
安装

(注意我把它安装到了一个非常规的地方。如果你想要从这个地方使用库文件,你需要将/usr/local/svnjavahl/lib加入到你的LD_LIBRARY_PATH环境变量。)

通过运行一个小的测试程序,我能够确定这个版本能够很好地运行。但是,我不能,让它和eclipse一起工作。每当我试图这样的时候,我便得到这样的错误(每个使用subversion的project一次):

Unhandled event loop exception
Reason:
ctNative

所以,现在我仅仅将Subclipse插件用在命令行上。这样确实比较慢,但至少能够用。

如果我理解得没错的话,你的问题出在因为Subclipse是在某个特定的版本的javahl和subversion的基础上编译的(参考 [WWW] http://subclipse.tigris.org/)。现在的版本应该在subversion 1.1+下工作得更好。很感谢你的帮助,我希望很快我们就能让它工作起来。

嗯,我成功地编译了一个subversion 1.1.1 w/ javahl库(用的是实验版的debian中的包),但我还是得到了一样的问题。真令人伤心。很感谢你的建议,但是,好像我有了更大的问题。

From EmilWilmanski Mon Dec 13 11:29:57 +0000 2004 From: Emil Wilmanski Date: Mon, 13 Dec 2004 11:29:57 +0000 Subject: I done it... Message-ID: <[MAILTO] 20041213112957+0000@www.ubuntulinux.org>

很感谢你的文章……我需要eclipse插件的javahl……我怎么做的:我们需要新版本的subversion(版本1.1.1,在实验源中),编辑subversion-1.1.1/debian/rules第39行,添加"--enable-javahl"(如果想要给cofflags加上选项,不要忘了在前一行末加上"\")。用dpkg-buildpackage编译,然后转换目录cd subversion-1.1.1/build-tree/subversion-1.1.1,编译make javahl。我这样做没有得到任何错误信息……在subversion-1.1.1/subversion/bindings/java/javahl/native/.lib,我们有javahl库

From DagSverreSeljebotn Tue Jan 11 08:36:12 +0000 2005 From: Dag Sverre Seljebotn Date: Tue, 11 Jan 2005 08:36:12 +0000 Subject: Native Java Message-ID: <20050111083612+0000@[WWW] https://www.ubuntulinux.org>

我使用了一个纯粹的Java Subversion客户端,然后成功 了[WWW] http://tmate.org/svn/

在从svn view中导入project的时候有一些小的毛病:右键,导入,它会(可能会)异常中止。回到svn view,找到对这个project开放的rep,重新键入登陆密码。结果会成功登陆,但是你需要手动刷新才能看见文件。然后再打开project来隐藏.svn系列文件夹……

能与 javahl 一同工作的subversion

From MaciejFreudenheim Sun Mar 13 02:03:35 +0000 2005 From: Maciej Freudenheim Date: Sun, 13 Mar 2005 02:03:35 +0000 Subject: Everything works (using native javahl)! Message-ID: <20050313020335+0000@[WWW] https://www.ubuntulinux.org>

好了,现在所有的东西都可以完美地运行了,下面是我怎么做的:

1. apt-get source subversion

2. cd subversion-1.1.1

3. 编辑debian/rules (例如: gedit debian/rules )

在文件的开头,将如下行

ENABLE_JAVAHL=no

改为:

ENABLE_JAVAHL=yes

同样,也要在下面搜索字符串"with-jdk",保证它指向你的JDK。对于我来说,它是:

confflags += --enable-javahl --without-jikes --with-jdk=/usr/lib/sun-j2sdk1.5.0

4. sudo dpkg-buildpackage

如果它停下来提示,说没有安装某个依赖包,那就这样安装那些包:sudo apt-get install and relaunch dpkg-buildpackage 。这一步会花很多时间。

5. cd debian/libsvn-javahl/usr/

6. sudo cp -a * /usr
我知道这样做不好,但是我没有时间来研究怎么编译deb包比较好。

7. sudo ldconfig

8. launch eclipse with: $PATH_TO_YOUR_ECLIPSE_DIRECTORY/eclipse -vmargs -Djava.library.path=/usr/lib

将java.library.path属性设为/usr/lib很重要,否则在Eclipse中会找不到我们安装在/usr/lib中的libsvnjavahl*.so。

9. 用正常的方法在Eclipse中安装subversion插件,就同Wiki网页的开始所描述的一样。

10. 重新启动eclipse:所有的东西应该都可以正常工作,你应该可以在preferences->team->svn 。

From JojoPaderes Mon May 9 03:51:33 +0100 2005 From: Jojo Paderes Date: Mon, 09 May 2005 03:51:33 +0100 Subject: Problem compiling Subversion with Javahl Message-ID: <20050509035133+0100@[WWW] https://www.ubuntulinux.org>

感谢Maciej好文章!

我正按照步骤编译带有Javahl的Subversion,但是在第4步卡住了。就是用dpkg-buildpackage命令编译Debian包的那一步。我碰到了一个这样的错误提示:

checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make: *** [debian/stamp-configure] Error 1

想要解决编译Subversion时的C++ preprocessor "/lib/cpp" fails sanity check,你需要用apt-get下载GCC,CPP和G++:

sudo apt-get install gcc cpp g++

From KrzysztofLangner Fri May 13 22:15:43 +0100 2005 From: Krzysztof Langner Date: Fri, 13 May 2005 22:15:43 +0100 Subject: javahl and JavaSVN Message-ID: <[MAILTO] 20050513221543+0100@www.ubuntulinux.org>

除了用javahl,从[WWW] http://tmate.org/svn/ 安装JavaSVN也是可以的。 (JavaSVN是一个纯粹的Java Subversion (SVN)客户端库文件)。在我的电脑上,我安装了:

*

Unbuntu 5.04
*

JDK 1.5.0_3
*

Eclipse 3.0.2
*

subversion包
*

subclipse插件
*

JavaSVN插件

Subversion在我的机器上运行得很好。

CategoryDocumentation CategoryCleanup


_________________
弄个dropbox空间来备份文件或者做私人代码服务器
配置:git://github.com/roylez/dotfiles.git
主页:http://roylez.heroku.com
各种稀奇玩意儿:http://dooloo.info


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2005-10-14 14:36 
头像

注册: 2005-08-29 14:49
帖子: 1119
地址: 杭州
送出感谢: 0 次
接收感谢: 3
Based on nkzealot's work

参考:SubVersion

参考:EclipseIDE

Subversion支持

首先,使用如下命令安装subversion程序包:
sudo apt-get install subversion

Subclipse (TOFIX)

Subclipse是一个Subversion客户端,工作方式类似集成的CVS客户端。最新信息请参看[WWW]官方sublipse主页。

* 在Eclipse中,进入如下菜单:Help -> Software Updates -> Find and Install...

* Search for new features to install(搜索要安装的新特性)

* Add a new Remote Site with URL(添加一个新的远程站点URL):http://subclipse.tigris.org/update

* 连续点击三次“下一步”

* 重新启动Eclipse

现在Subclipse需要一个名为javahl的subversion java绑定,它并不随subversion包一起安装。

适用Ubuntu的libsvn-javahl

我按照这个站点的说明来编译自己的libsvn-javahl(下载地址[WWW] http://schuerrer.org/uploads/libsvn-jav ... 3_i386.deb),之后只需建立一个符号链接,从/usr/lib/libsvnjavahl-1.so指向/usr/lib/j2sdk1.5- sun/jre/lib/i386/client/libsvnjavahl-1.so。然后我把/opt/eclipse/plugins/org.tigris.subversion.subclipse.core_0.9.31/svnjavahl.jar 替换成 /usr/share/java/svn-javahl.jar,结果还是出现一个JFace错误。会不会是Subclipse 0.9.31无法Eclipse 3.1M7上运行呢?

Subversion和Javahl

Javahl是个subversion <-> java库。

这个安装方法并不成功,但还是要在下面给出我的输出结果。我希望有人能够完成并使之工作。

我试着照这个指南[WWW] Howto install SvnUp的第一部分进行安装,但是javac无法找到源文件。我安装的Java 1.5。有人知道原因吗?

* 进入你的编译文件夹,我使用 ~/builds

* 下载subversion源文件:apt-get source subversion

* 解开压缩包:tar xzf subversion_1.0.9.orig.tar.gz

* 进入解压缩产生的文件夹,再次解压:tar zxvf subversion_1.0.9.tar.gz

* 进入解压缩产生的文件夹并运行:./autogen.sh

* 运行:./configure --prefix=/usr

* 运行:make

* 进入子目录:subversion/bindings/java/javahl

* 再次运行:./autogen.sh

* 运行(不能确定正确与否):./configure --prefix=/usr --with-jdk=/usr/lib/j2sdk1.5-sun

* 运行:make

到这里就不正常了,输出在这里:

Making all in src
make[1]: Entering directory `/home/zimba/builds/subversion-1.0.9/subversion-1.0.9/subversion/bindings/java/javahl/src'
CLASSPATH=../cls:./../cls:$CLASSPATH /usr/lib/j2sdk1.5-sun/bin/javac -d ../cls
javac: no source files
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system

make[1]: *** [class.stamp] Error 2
make[1]: Leaving directory `/home/zimba/builds/subversion-1.0.9/subversion-1.0.9/subversion/bindings/java/javahl/src'
make: *** [all-recursive] Error 1

我是如何处理的

好吧,这不是Ubuntu Linux(我用的是Debian unstable版本),如果下面的方法对你无效,还烦请原谅。下面是我所用的步骤:

* 进入你的编译文件夹。

* 使用apt-get build-dep subversion获取你编译subversion所需的软件包

* 使用apt-get source subversion获取源文件

* cd subversion-1.0.9/进入这个目录(apt-get应该已经为你建立了这个目录)

* dpkg-buildpackage编译安装包……这要花很长时间,因为其中有很多的测试用来验证编译工作正确

* cd build-tree/subversion-1.0.9/subversion/bindings/java/javahl 这是javahl绑定所在文件夹

* ./autogen.sh 我使用了automake-1.8!如果想要自己的编译结果尽可能的和我的相近,你可以用apt-get安装它!

* ./configure --prefix=/usr/local/svnjavahl --with-jdk=/usr/lib/j2sdk1.5-sun 当然你也可以指定自己的安装目录和jdk版本。我之所以指定这个目录是因为我不喜欢本地安装的库文件和debian系统安装的库搅和在一起。

* make 编译之。

* make install 安装之。

(注意我把它安装到了一个非标准位置。如果你想使用该位置的库文件,需要把/usr/local/svnjavahl/lib添加到你的环境变量LD_LIBRARY_PATH。)

通过运行一个小的测试程序,我确定了这个版本工作良好。但是,我无法让它整合到eclipse中。我试过了,不过只得到这个错误(每个使用subversion的项目一次):

Unhandled event loop exception
Reason:
ctNative

所以,现在我仅仅将Subclipse插件用在命令行上。这样比较慢,但至少还能用。

如果我没理解错的话,出现这个问题的原因是:Subclipse是在某个特定版本的javahl和subversion基础上编译的(参考 [WWW] http://subclipse.tigris.org/)。当前版本应该在subversion 1.1+下工作得更好。很感谢你的帮助,我希望我们很快就能理顺这一切。

嗯,我成功地编译了一个subversion 1.1.1 w/ javahl库(使用Debian “试验版”的包),但还是出现同个问题。:(。不过还是很感谢你的建议,尽管好像我有了更大的问题。

From EmilWilmanski Mon Dec 13 11:29:57 +0000 2004 From: Emil Wilmanski Date: Mon, 13 Dec 2004 11:29:57 +0000 Subject: I done it... Message-ID: <[MAILTO] 20041213112957+0000@www.ubuntulinux.org>

很感谢你的文章……我需要eclipse插件的javahl……我怎么做的:我们需要新版本的subversion(版本1.1.1,在实验源中),编辑 subversion-1.1.1/debian/rules第39行,添加"--enable-javahl"(如果想要给cofflags加上选项,不要忘了在前一行末加上"\")。用dpkg-buildpackage编译,然后转换目录cd subversion-1.1.1/build-tree/subversion-1.1.1,编译make javahl。我这样做没有得到任何错误信息……在subversion- 1.1.1/subversion/bindings/java/javahl/native/.lib,我们有javahl库

From DagSverreSeljebotn Tue Jan 11 08:36:12 +0000 2005 From: Dag Sverre Seljebotn Date: Tue, 11 Jan 2005 08:36:12 +0000 Subject: Native Java Message-ID: <20050111083612+0000@[WWW] https://www.ubuntulinux.org>

我使用了一个纯Java Subversion客户端,然后成功了[WWW] http://tmate.org/svn/

在从svn view中导入project的时候有一些小的毛病:右键,导入,它会(可能会)异常中止。回到svn view,找到对这个project开放的rep,重新键入登陆密码。结果会成功登陆,但是你需要手动刷新才能看见文件。然后再打开project来隐藏.svn系列文件夹……

能与 javahl 一同工作的subversion

From MaciejFreudenheim Sun Mar 13 02:03:35 +0000 2005 From: Maciej Freudenheim Date: Sun, 13 Mar 2005 02:03:35 +0000 Subject: Everything works (using native javahl)! Message-ID: <20050313020335+0000@[WWW] https://www.ubuntulinux.org>

好了,现在一切都可完美的工作了,下面是我的做法:

1. apt-get source subversion

2. cd subversion-1.1.1

3. 编辑debian/rules (如:gedit debian/rules )

把文件开头的这一行:

ENABLE_JAVAHL=no

改为:

ENABLE_JAVAHL=yes

此外搜索其后的字符串"with-jdk",确保它指向你的JDK。我的情况是:

confflags += --enable-javahl --without-jikes --with-jdk=/usr/lib/sun-j2sdk1.5.0

4. sudo dpkg-buildpackage

如果命令终止并提示找不到依赖包,那就使用sudo apt-get install命令缺啥补啥;然后重新运行dpkg-buildpackage:) 。这个命令会耗费较长时间。

5. cd debian/libsvn-javahl/usr/

6. sudo cp -a * /usr 我知道这方法够蹩脚,不过我没时间如何制作deb包比较好。

7. sudo ldconfig

8. 使用这个命令启动eclipse:$PATH_TO_YOUR_ECLIPSE_DIRECTORY/eclipse -vmargs -Djava.library.path=/usr/lib

注意要把java.library.path属性设为/usr/lib,否则Eclipse无法找到我们刚才安装在/usr/lib中的libsvnjavahl*.so

9. 如本Wiki页开始的描述,按常规方法安装subversion插件

10. 重新启动eclipse:一切都应可以正常工作了,并且你可以通过你应该可以在preferences->team->svn选择javahl:)。

From JojoPaderes Mon May 9 03:51:33 +0100 2005 From: Jojo Paderes Date: Mon, 09 May 2005 03:51:33 +0100 Subject: Problem compiling Subversion with Javahl Message-ID: <20050509035133+0100@[WWW] https://www.ubuntulinux.org>

感谢Maciej的好文!

我正按照步骤编译带Javahl支持的Subversion,但是在第4步卡住了,就是用dpkg-buildpackage命令制作Debian包的那一步。使用dpkg-buildpackage命令制作软件包时,我碰到了如下错误:

checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make: *** [debian/stamp-configure] Error 1

如要解决Subversion编译时出现的C++预处理器"/lib/cpp"无法通过完整性检查(C++ preprocessor "/lib/cpp" fails sanity check),你需要用apt-get下载GCC、CPP和G++:

sudo apt-get install gcc cpp g++

From KrzysztofLangner Fri May 13 22:15:43 +0100 2005 From: Krzysztof Langner Date: Fri, 13 May 2005 22:15:43 +0100 Subject: javahl and JavaSVN Message-ID: <[MAILTO] 20050513221543+0100@www.ubuntulinux.org>

除了javahl,也可以安装JavaSVN [WWW] http://tmate.org/svn/。(JavaSVN是个纯java Subversion(SVN)客户端库)。我在电脑上安装了下列软件:

* Unbuntu 5.04

* JDK 1.5.0_3

* Eclipse 3.0.2

* subversion包

* subclipse插件

* JavaSVN插件

并且Subversion运行良好。

CategoryDocumentation CategoryCleanup

https://wiki.ubuntu.com/EclipseSubversion


_________________
用心×恒 | 豆瓣 | 门户 | Blog


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2005-11-03 14:29 
论坛管理员

注册: 2005-03-27 0:06
帖子: 10110
系统: Ubuntu 12.04
送出感谢: 7
接收感谢: 127
http://www.ubuntu.org.cn/support/docume ... howto_view


页首
 用户资料  
 
5 楼 
 文章标题 :
帖子发表于 : 2006-07-29 23:25 
头像

注册: 2005-07-02 14:41
帖子: 4133
系统: Ubuntu 14.04 (Kylin)
送出感谢: 53
接收感谢: 11
英文出现新版了,在老版翻译的基础上完成了新版的翻译,顺手修改了老版翻译的几处措词。
没看到leal的文章(眼睛好大啊),没用上。

http://wiki.ubuntu.org.cn/EclipseSubversion


_________________
https://weakish.github.io


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 5 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译