Constance,

Have you modified your yum configuration (/etc/yum.repos.d/rhel-source.repo) to 
point to the DVD for your yum repository?  I just double checked on a machine 
that I have NOT connected to my satellite server yet, and when I mount the DVD 
for RHEL 6.4 on my VM (VMware ESX 3.5) and do a "yum search ant" this is the 
entire listing that I get:

[root@quetzalcoatl etc]# yum search ant
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use 
subscription-manager to register.
================================================================================
 N/S Matched: ant 
================================================================================
ant.x86_64 : Ant build tool for java
ant-antlr.x86_64 : Optional antlr tasks for ant
ant-apache-bcel.x86_64 : Optional apache bcel tasks for ant
ant-apache-bsf.x86_64 : Optional apache bsf tasks for ant
ant-apache-log4j.x86_64 : Optional apache log4j tasks for ant
ant-apache-oro.x86_64 : Optional apache oro tasks for ant
ant-apache-regexp.x86_64 : Optional apache regexp tasks for ant
ant-apache-resolver.x86_64 : Optional apache resolver tasks for ant
ant-commons-logging.x86_64 : Optional commons logging tasks for ant
ant-commons-net.x86_64 : Optional commons net tasks for ant
ant-javamail.x86_64 : Optional javamail tasks for ant
ant-jdepend.x86_64 : Optional jdepend tasks for ant
ant-jsch.x86_64 : Optional jsch tasks for ant
ant-junit.x86_64 : Optional junit tasks for ant
ant-nodeps.x86_64 : Optional tasks for ant
ant-swing.x86_64 : Optional swing tasks for ant
ant-trax.x86_64 : Optional trax tasks for ant
enchant.i686 : An Enchanting Spell Checking Library
enchant.x86_64 : An Enchanting Spell Checking Library
ibus-anthy.x86_64 : The Anthy engine for IBus input platform
perl-Package-Constants.x86_64 : List all constants declared in a package
python-enchant.x86_64 : Python bindings for Enchant spellchecking library
wpa_supplicant.x86_64 : WPA/WPA2/IEEE 802.1X Supplicant
anthy.i686 : Japanese character set input library
anthy.x86_64 : Japanese character set input library
antlr.x86_64 : ANother Tool for Language Recognition
ctags-etags.x86_64 : Exuberant Ctags for emacs tag format
dash.x86_64 : Small and fast POSIX-compliant shell
hunspell-eo.noarch : Esperanto hunspell dictionaries
ibacm.x86_64 : InfiniBand Communication Manager Assistant
isomd5sum.x86_64 : Utilities for working with md5sum implanted in ISO images
javassist.noarch : The Java Programming Assistant provides simple Java bytecode 
manipulation
kasumi.x86_64 : An anthy dictionary management tool.
pothana2000-fonts.noarch : Unicode compliant OpenType font for Telugu
python-twisted-words.x86_64 : Twisted Instant Messaging implementations
uuidd.x86_64 : Helper daemon to guarantee uniqueness of time-based UUIDs
vemana2000-fonts.noarch : Unicode compliant OpenType font for Telugu

  Name and summary matches only, use "search all" for everything.
-----------------------------------------------------------------------------------------------------------------

My yum repo setup:

[RHEL_64_DVD]
name=RHEL 6.4 x64 DVD Source
baseurl=file:///media
enabled=1
gpgcheck=0

DVD Mounted is mounted to /media.

[root@quetzalcoatl yum.repos.d]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sr0              3.5G  3.5G     0 100% /media <--


[root@quetzalcoatl yum.repos.d]# yum install ant
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use 
subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ant.x86_64 0:1.7.1-13.el6 will be installed
--> Processing Dependency: java-devel >= 1.5.0 for package: 
ant-1.7.1-13.el6.x86_64
--> Processing Dependency: xerces-j2 for package: ant-1.7.1-13.el6.x86_64
--> Running transaction check
---> Package java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.50.1.11.5.el6_3 will 
be installed
---> Package xerces-j2.x86_64 0:2.7.1-12.6.el6_0 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================================================================
Package                                          Arch                           
Version                                                Repository               
            Size
==================================================================================================================================================================================
Installing:
ant                                                                        
x86_64                         1.7.1-13.el6                                     
      RHEL_64_DVD                         2.5 M
Installing for dependencies:
java-1.6.0-openjdk-devel                            x86_64                      
   1:1.6.0.0-1.50.1.11.5.el6_3                            RHEL_64_DVD           
              8.5 M
xerces-j2                                                            x86_64     
                    2.7.1-12.6.el6_0                                       
RHEL_64_DVD                         2.9 M

Transaction Summary
==================================================================================================================================================================================
Install       3 Package(s)

Total download size: 14 M
Installed size: 50 M

I hope this helps.


Ben Branch
UNIX/Linux Administrator
University of Central Oklahoma
ITIL Foundation v3, Network+, RHCSA

100 N. University Drive, Box 122
Edmond, OK 73034
D: 405.974.2649 | M: 405.550.6804 | bbranch@uco.<mailto:bbranch@uco.>edu | 
www.uco.edu<http://www.uco.edu/>

"I am wiser than this man, for neither of us appears to know anything great and 
good; but he fancies he knows something, although he knows nothing; whereas I, 
as I do not know anything, so I do not fancy I do. In this trifling particular, 
then, I appear to be wiser than he, because I do not fancy I know what I do not 
know."  - Socrates

From: Constance Morris [mailto:[email protected]]
Sent: Tuesday, June 11, 2013 7:07 AM
To: [email protected]
Subject: RE:[cas-user] {cas-usr} building from ground up

I hope it is okay to post back at the top of the messages - I was told on 
another listserv to post at the bottom, so please let me know if I should do so 
here too.

Ben,
I used the RHELserver-6.4-x86_64-dvd.iso as it was a virtual machine and apache 
ant wasn't already on it.
I did the 'yum search ant' like you and got the following:


Ø  Loaded plugins: product-id, security, subscription-manager
-------------------N/S Matched: ant ---------------------------
perl-Package-Constants.x86_64 : List all constants declared in a package
dash.x86_64 : Small and fast POSIX-compliant shell

Name and summary matches only, use "search all" for everything.

Since I'm not registered to red hat yet I can't do yum install ant.x86_64 or 
else I get back an error saying I'm not registered to red hat.....

Constance

From: Ben Branch [mailto:[email protected]]
Sent: Monday, June 10, 2013 7:38 PM
To: [email protected]<mailto:[email protected]>
Subject: RE:[cas-user] {cas-usr} building from ground up

Constance,

I'm not sure what version of Ant you need, but apache ant comes on the RHEL DVD 
and can be installed from there instead of the apache ant tarball.  I'm not 
sure what all is included in the tar that you downloaded from Apache.org, but 
these are all of the available packages that come back when I do a "yum search 
ant":

Note: I've removed the other packages that contain "ant" in them from the 
search results here.

[root@chronos log]# yum search ant
ant.x86_64 : Ant build tool for java
ant-antlr.x86_64 : Optional antlr tasks for ant
ant-apache-bcel.x86_64 : Optional apache bcel tasks for ant
ant-apache-bsf.x86_64 : Optional apache bsf tasks for ant
ant-apache-log4j.x86_64 : Optional apache log4j tasks for ant
ant-apache-oro.x86_64 : Optional apache oro tasks for ant
ant-apache-regexp.x86_64 : Optional apache regexp tasks for ant
ant-apache-resolver.x86_64 : Optional apache resolver tasks for ant
ant-commons-logging.x86_64 : Optional commons logging tasks for ant
ant-commons-net.x86_64 : Optional commons net tasks for ant
ant-javamail.x86_64 : Optional javamail tasks for ant
ant-jdepend.x86_64 : Optional jdepend tasks for ant
ant-jsch.x86_64 : Optional jsch tasks for ant
ant-junit.x86_64 : Optional junit tasks for ant
ant-nodeps.x86_64 : Optional tasks for ant
ant-swing.x86_64 : Optional swing tasks for ant
ant-trax.x86_64 : Optional trax tasks for ant

To install this, you just need to do a "yum install ant.x86_64" and you should 
be ready to go.

Ben Branch
UNIX/Linux Administrator
University of Central Oklahoma
ITIL Foundation v3, Network+, RHCSA

100 N. University Drive, Box 122
Edmond, OK 73034
D: 405.974.2649 | M: 405.550.6804 | bbranch@uco.<mailto:bbranch@uco.>edu | 
www.uco.edu<http://www.uco.edu/>

"I am wiser than this man, for neither of us appears to know anything great and 
good; but he fancies he knows something, although he knows nothing; whereas I, 
as I do not know anything, so I do not fancy I do. In this trifling particular, 
then, I appear to be wiser than he, because I do not fancy I know what I do not 
know."  - Socrates

From: Constance Morris [mailto:[email protected]]
Sent: Monday, June 10, 2013 3:58 PM
To: [email protected]<mailto:[email protected]>
Subject: [cas-user] {cas-usr} building from ground up

Good Afternoon,
If my question should be directed elsewhere - please let me know.

This is my first time building a server as well as a CAS server and am stumped. 
I have setup the virtual machine in vmware. The OS is RHEL 6.4

I haven't even got CAS 3.5.1 installed yet....

I'm building my tomcat and am trying to follow the apache.org steps by having 
downloaded and installed the JDK version 6u45 first.
Then set the environment variable JAVA_HOME in my .bashrc file.

When I check this (java -version) - I get the response:


Ø  Java version "1.6.0_24"

Ø  OpenJDK Runtime Environment (IcedTea6 1.11.5) (rhel-1.50.1.11.5.e16_3-x86_64)

Ø  OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

Which I thought meant it worked. So I moved on to the Apache Ant and this is 
where I am stumped.

I downloaded and unpacked the apache ant 1.8.1 and have tried to set the 
environment variable in the .bash_profile file as mentioned in an article I 
found online at docs.oracle.com

Added:


Ø  ANT_HOME=/apache-install-dir/apache-ant-version

Ø  ANT_OPTS="Xms256M -Xmx512M"

Ø  PATH=$PATH:$HOME/bin:$ANT_HOME/bin

Ø  Export ANT_HOME ANT_OPTS PATH

But when I check it by entering either 'ant' or 'ant -version' I get the error 
message


Ø   -bash: ant: command not found

Can anyone point me to a site for instructions or assist me through this hurdle?

Thank you!
Constance

--
You are currently subscribed to 
[email protected]<mailto:[email protected]> as: 
[email protected]<mailto:[email protected]>
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

--
You are currently subscribed to 
[email protected]<mailto:[email protected]> as: 
[email protected]<mailto:[email protected]>
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

--
You are currently subscribed to 
[email protected]<mailto:[email protected]> as: 
[email protected]<mailto:[email protected]>
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to