Trying to emerge dev-java/ant-core (in the course of emerging libreoffice), I got the error:
ERROR: prepare
No binary for rewriting found.
Do you have dev-java/javatoolkit installed?
ERROR: dev-java/ant-core-1.10.5-r2::java-kit failed (prepare phase):
xml-rewrite not found
Call stack:
ebuild.sh, line 93: Called src_prepare
environment, line 4125: Called java-ant_xml-rewrite '-f' 'build.xml' '-c' '-e' 'javadoc' '-a' 'failonerror' '-v' 'false'
environment, line 1896: Called die
I do have dev-java/javatoolkit installed.
I tried looking at the function java-ant_xml-rewrite() in core-kit/eclass/java-ant-2.eclass to fix it, but I don't even know what an eclass is. I did manage to figure out that it was looking for a file /usr/lib64/javatoolkit/bin/xml-rewrite-2.py, but all the files installed by dev-java/javatoolkit are in /usr/lib/javatoolkit/ instead. The "lib64" comes from a function get_libdir, and I don't know where that's defined.
I created a symlink /usr/lib64/javatoolkit pointing to /usr/lib/javatoolkit and then the emerge worked.
Are /usr/lib and /usr/lib64 even supposed to be separate directories? This is a newly installed Funtoo 1.4 system, and they were separate directories after the installation (so are /lib and /lib64).
Question
kundor
Trying to emerge dev-java/ant-core (in the course of emerging libreoffice), I got the error:
I do have dev-java/javatoolkit installed.
I tried looking at the function java-ant_xml-rewrite() in core-kit/eclass/java-ant-2.eclass to fix it, but I don't even know what an eclass is. I did manage to figure out that it was looking for a file /usr/lib64/javatoolkit/bin/xml-rewrite-2.py, but all the files installed by dev-java/javatoolkit are in /usr/lib/javatoolkit/ instead. The "lib64" comes from a function get_libdir, and I don't know where that's defined.
I created a symlink /usr/lib64/javatoolkit pointing to /usr/lib/javatoolkit and then the emerge worked.
Are /usr/lib and /usr/lib64 even supposed to be separate directories? This is a newly installed Funtoo 1.4 system, and they were separate directories after the installation (so are /lib and /lib64).
Link to comment
Share on other sites
2 answers to this question
Recommended Posts