You are not logged in.

#1 2010-12-19 22:03:14

zuargo
Member
From: Concepción, Chile
Registered: 2009-08-20
Posts: 116

Error by compiling yacy: Target "build-jar" does not exist

Hello

I am trying to compile yacy by using this PKGBUILD (based in this one: http://aur.archlinux.org/packages.php?ID=14464):

pkgname=yacy-svn
pkgver=7387
pkgrel=1
pkgdesc="Peer to peer searchengine"
arch=(i686 x86_64)
url="http://yacy.net/"
license="GPL"
depends=('java-runtime' 'sudo')
#depends=('jre' 'sudo')
#makedepends=('jdk' 'apache-ant' 'subversion')
makedepends=('apache-ant' 'java-environment')
conflicts=(yacy)
replaces=()
provoids=(yacy)
install=yacy.install
source=()
md5sum=()

_svntrunk=svn://svn.berlios.de/yacy/trunk/
_svnmod=yacy

build() {
  cd $startdir/src/
  msg "Checking out svn-tree..."
  svn co -r $pkgver $_svntrunk $_svnmod || return 1
  cd $startdir/src/yacy/

  msg "Create working directory"
  cp -r $startdir/src/yacy $startdir/src/yacy-work
  rm -rf $(find "$startdir/src/yacy-work" -type d -name ".svn" -print)
  # svn-file, that buildscript can determine revision
  mkdir -p $startdir/src/yacy-work/.svn/
  cp $startdir/src/yacy/.svn/entries $startdir/src/yacy-work/.svn/entries
  cd $startdir/src/yacy-work/

  msg "compile and copy files..."
  ant build-jar installonlinux -DDESTDIR=$startdir/pkg || return 1
  mkdir -p $startdir/pkg/usr/share/java/yacy/
  cp lib/*.jar $startdir/pkg/usr/share/java/yacy/
  cp libx/*.jar $startdir/pkg/usr/share/java/yacy/
  mkdir -p $startdir/pkg/etc/rc.d
  m4 -DArchLinux $startdir/src/yacy/addon/yacyInit.m4 >yacy.init || return 1
  install -Dm755 yacy.init $startdir/pkg/etc/rc.d/yacy

  msg "Delete working directory"
  rm -rf $startdir/src/yacy-work
}

But in the process I get this error:

Buildfile: ~/yacy/src/yacy-work/build.xml

BUILD FAILED
Target "build-jar" does not exist in the project "YaCy".

I have searched information related using google but I don't find one solution.

I think it is a java related problem. I have installed Oracle's Java Runtime Environment jre-6u23-1

I use Archlinux x86 2.6.36-2.

Can anyone help me please?

Thanks in advance

Offline

#2 2010-12-20 18:16:33

zuargo
Member
From: Concepción, Chile
Registered: 2009-08-20
Posts: 116

Re: Error by compiling yacy: Target "build-jar" does not exist

Please, can anyone help me with this?

I am sure this part of the PKGBUILD is the problem:

ant build-jar installonlinux -DDESTDIR=$startdir/pkg || return 1

Probably a issue with the directory where the compilation is searching build-jar or something like.

Offline

#3 2011-01-08 15:54:00

zuargo
Member
From: Concepción, Chile
Registered: 2009-08-20
Posts: 116

Re: Error by compiling yacy: Target "build-jar" does not exist

OK

Still I can't install yacy, but I was reading the file readme.txt included in the program's tarball.

There, says to start yacy run:

./startYACY.sh

I get this terminal output:

****************** YaCy Web Crawler/Indexer & Search Engine *******************
**** (C) by Michael Peter Christen, usage granted under the GPL Version 2  ****
****   USE AT YOUR OWN RISK! Project home and releases: http://yacy.net/   ****
**  LOG of       YaCy: DATA/LOG/yacy00.log (and yacy<xx>.log)                **
**  STOP         YaCy: execute stopYACY.sh and wait some seconds             **
**  GET HELP for YaCy: see http://wiki.yacy.net and http://forum.yacy.de     **
*******************************************************************************
 >> YaCy started as daemon process. Administration at http://localhost:8080 <<

When I have tried to access to localhost, I get the following message:

Error connecting to localhost. Connection refused.

But from terminal I can ping to localhost

Can anybody help me with any of this troubles please?

Last edited by zuargo (2011-01-08 15:55:48)

Offline

Board footer

Powered by FluxBB