LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to register ant with rpm database? (https://www.linuxquestions.org/questions/linux-software-2/how-to-register-ant-with-rpm-database-123234/)

janisj 12-06-2003 09:07 AM

How to register ant with rpm database?
 
I downloaded Apache Ant apache-ant-1.5.4-bin.tar.gz. I carried out all instructions -- set up $ANT_HOME and added bin to my $PATH. Ant is a dependency for eclipse. The problem is, when I now try to build eclipse source rpm still says that there is no ant. How can I register ant with the rpm database?

Thanks,

Janis

teval 12-06-2003 09:15 AM

Check if rpm has an inject option or something like that. I haven't used RPM in ages.

Actually, there is a program called inject.
Try that out, it'll add things to the rpm database.

janisj 12-06-2003 09:32 AM

or perhaps my question should be rephrased: how to build an rpm out of a tarball for ant?
Perhaps somebody has the rpm or an example SPEC file for ant already?

janisj 12-06-2003 09:33 AM

where can I find inject?

teval 12-06-2003 11:37 AM

Should be in /usr/bin or /bin from what I remember.

janisj 12-07-2003 05:05 AM

what a good memory you have, teval. But, it appears to me, the concept won't work. You need to first build the rpm from the tarball, then install it as always.

Anyway, I installed ant and tomcat using rpm. For this there is a quite ok howto here:

http://www.mail-archive.com/tomcat-u...msg107082.html

I used the newest versions from www.jpackage.org and it worked.

Regards,

J.


All times are GMT -5. The time now is 12:13 AM.