You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by H Whitney Stewart <wh...@thesnows.com> on 2002/12/12 02:43:27 UTC
re[2]: New User? -- Ant doesn't run -- Appears that OS is not finding or just not starting ant.sh from /etc/profile.d --I must be missing something simple?
Conner
Thank you for your quick reply.
I apologize that I did not give you enough information regarding "can not run"
It appears that the OS does not find "ant"
bash: ant: command not found
I may be asking the question in the wrong place. If so I am sorry. If you could direct me to the correct location I would appreciate it.
Thank You..
Whitney
>> H. Whitney Stewart wrote:
>> >
>> > Can not run ant from command prompt via telnet logged in as root
>> >
>> When you say "can not run ant", what exactly do you mean? What output do
>>
>> you see? Is the ant command not found, or does it run and fail? Also,
>> I'd suggest not running Ant as root.
>> >
>> > Can someone please help or please just shoot me into the correct
>> > direction to find the answer myself.
>> >
>> We really need more info about what is happening. If you get to the
>> point where the ant script is being run, then you can add -x to the
>> #!/bin/sh at the top of the script to see what is going on!
>> Conor
>> --
>> To unsubscribe, e-mail:
>> <ma...@jakarta.apache.org>
>> For additional commands, e-mail:
>> <ma...@jakarta.apache.org>
H. Whitney Stewart
Telephone
Cell: 586-530-6546
Follow-Me: 877-594-0533
eMail
normal: Whitney.Stewart@TheSnows.com
Priority: HWStewart@TheSnows.com
IM Screen Names
AOL hyacharbor
ICQ 64519298
Yahoo hyacharbor
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: New User? -- Ant doesn't run
Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
H Whitney Stewart wrote:
> Conner
>
> Thank you for your quick reply.
>
> I apologize that I did not give you enough information regarding "can not run"
>
> It appears that the OS does not find "ant"
>
> bash: ant: command not found
>
> I may be asking the question in the wrong place. If so I am sorry. If you could direct me to the correct location I would appreciate it.
>
Here's the right place to ask. The more relevant info you provide the
easier it is to answer your questions.
BTW I trimmed the subject line a little.
Firstly, in your ant.sh script, I'd change
PATH="$PATH:/usr/local/jakarta-ant-1.5.1/bin"
ANT_HOME=/usr/local/jakarta-ant-1.5.1
to
ANT_HOME=/usr/local/jakarta-ant-1.5.1
PATH="$PATH:$ANT_HOME/bin"
No functional change but saves keeping the two in sync when you upgrade.
I presume a Cobalt RAQ3 is a Linux box?
So the next steps are to do the following from a shell
1. echo $ANT_HOME
2. echo $PATH
3. which ant
4. ls -l $ANT_HOME/bin
1 & 2 will just confirm that these env variables are set. 3 will show if
the OS can find ant and 4 will list the contents of the Ant bin
directory to see if the ant script is there and is executable. This is
what I get when I do that
ls -l $ANT_HOME/bin
total 44
-rwxr-xr-x 1 conor users 5037 Dec 12 11:35 ant
-rw-r--r-- 1 conor users 3017 Dec 12 11:35 ant.bat
-rwxr-xr-x 1 conor users 166 Dec 12 11:35 antRun
-rw-r--r-- 1 conor users 686 Dec 12 11:35 antRun.bat
-rwxr-xr-x 1 conor users 1433 Dec 12 11:35 antRun.pl
-rwxr-xr-x 1 conor users 2488 Dec 12 11:35 complete-ant-cmd.pl
-rw-r--r-- 1 conor users 356 Dec 12 11:35 lcp.bat
-rwxr-xr-x 1 conor users 4544 Dec 12 11:35 runant.pl
-rwxr-xr-x 1 conor users 2795 Dec 12 11:35 runant.py
Make sure the execute bits are set.
Conor
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>