Quantcast

Install on linux

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Install on linux

Cristian Porta
Dear Grails users,
I have installed grails following all instruction on my
slackware box but I can't run it.

(17:45:01 crx <~>) 0 $ grails
: bad interpreter: No such file or directoryev/grails/ant/bin/ant: /bin/sh

This is the env vars:
(17:45:03 crx <~>) 0 $ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.:/home/crx/dev/grails/bin:/usr/local/bin/apache-ant

(17:46:15 crx <~>) 0 $ echo $GRAILS_HOME
/home/crx/dev/grails

the binary grails and ant in the grails directory are u+x


Tanks,
Cristian.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Install on linux

graemer
Hi Cristian,

One of our users, Stephan solved this before..

Stephan, how did you solve this again? Could you seen me the working
script? I know you  mentioned we should use an ant task as recommended
by Jochen, but the problem is that the grails release distributions do
not include the ant build or a requirement to have ant installed so
this is not really an option.

Thanks
Graeme

On 4/1/06, Cristian Porta <[hidden email]> wrote:

>
> Dear Grails users,
> I have installed grails following all instruction on my
> slackware box but I can't run it.
>
> (17:45:01 crx <~>) 0 $ grails
> : bad interpreter: No such file or directoryev/grails/ant/bin/ant: /bin/sh
>
> This is the env vars:
> (17:45:03 crx <~>) 0 $ echo $PATH
> /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.:/home/crx/dev/grails/bin:/usr/local/bin/apache-ant
>
> (17:46:15 crx <~>) 0 $ echo $GRAILS_HOME
> /home/crx/dev/grails
>
> the binary grails and ant in the grails directory are u+x
>
>
> Tanks,
> Cristian.
> --
> View this message in context: http://www.nabble.com/Install-on-linux-t1379786.html#a3704789
> Sent from the grails - user forum at Nabble.com.
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Install on linux

calathus
In reply to this post by Cristian Porta
I fixed this on SuSE 10.0. you may try my version of ant. i'll attache the ant file(copy under grails/ant/bin)
C

On 4/1/06, Cristian Porta <[hidden email]> wrote:

Dear Grails users,
I have installed grails following all instruction on my
slackware box but I can't run it.

(17:45:01 crx <~>) 0 $ grails
: bad interpreter: No such file or directoryev/grails/ant/bin/ant: /bin/sh

This is the env vars:
(17:45:03 crx <~>) 0 $ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.:/home/crx/dev/grails/bin:/usr/local/bin/apache-ant

(17:46:15 crx <~>) 0 $ echo $GRAILS_HOME
/home/crx/dev/grails

the binary grails and ant in the grails directory are u+x


Tanks,
Cristian.
--
View this message in context: http://www.nabble.com/Install-on-linux-t1379786.html#a3704789
Sent from the grails - user forum at Nabble.com.




--
Cheer
Calathus

"Imagination is more important than knowledge." -- A. Einstein
"Everything should be made as simple as possible, but not simpler."  -- A. Einstein
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." -- A. Einstein
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Install on linux

graemer
Hi calathus, I think the mailing list daemon strips out attachments,
can you send it to me directly

Thanks
Graeme

On 4/1/06, calathus <[hidden email]> wrote:

> I fixed this on SuSE 10.0. you may try my version of ant. i'll attache the
> ant file(copy under grails/ant/bin)
> C
>
>
> On 4/1/06, Cristian Porta < [hidden email]> wrote:
> >
> > Dear Grails users,
> > I have installed grails following all instruction on my
> > slackware box but I can't run it.
> >
> > (17:45:01 crx <~>) 0 $ grails
> > : bad interpreter: No such file or directoryev/grails/ant/bin/ant: /bin/sh
> >
> > This is the env vars:
> > (17:45:03 crx <~>) 0 $ echo $PATH
> >
> /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.:/home/crx/dev/grails/bin:/usr/local/bin/apache-ant
> >
> > (17:46:15 crx <~>) 0 $ echo $GRAILS_HOME
> > /home/crx/dev/grails
> >
> > the binary grails and ant in the grails directory are u+x
> >
> >
> > Tanks,
> > Cristian.
> > --
> > View this message in context:
> http://www.nabble.com/Install-on-linux-t1379786.html#a3704789
> > Sent from the grails - user forum at Nabble.com.
> >
> >
>
>
>
>
> --
> Cheer
> Calathus
>
> "Imagination is more important than knowledge." -- A. Einstein
> "Everything should be made as simple as possible, but not simpler."  -- A.
> Einstein
> "Any intelligent fool can make things bigger, more complex, and more
> violent. It takes a touch of genius -- and a lot of courage -- to move in
> the opposite direction." -- A. Einstein
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Install on linux

darrendavison

It's caused by the DOS end-of-line characters in the ant shell script.  If
you're editing shell scripts under Windows, you need to ensure the file
format is kept as UNIX.  Most decent text editors can do this.

On Sat, Apr 01, 2006 at 09:13:55PM +0100, Graeme Rocher wrote:

> Hi calathus, I think the mailing list daemon strips out attachments,
> can you send it to me directly
>
> Thanks
> Graeme
>
> On 4/1/06, calathus <[hidden email]> wrote:
> > I fixed this on SuSE 10.0. you may try my version of ant. i'll attache the
> > ant file(copy under grails/ant/bin)
> > C
--
Darren Davison
Public Key: 0xDD356B0D

attachment0 (198 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Install on linux

graemer
Interestingly the problem is in the ant shell script not the grails
one which has been unmodified and is part of the ant 1.6.5
distribution that I unpackaged into grails :-|

Graeme

On 4/2/06, Darren Davison <[hidden email]> wrote:

>
> It's caused by the DOS end-of-line characters in the ant shell script.  If
> you're editing shell scripts under Windows, you need to ensure the file
> format is kept as UNIX.  Most decent text editors can do this.
>
> On Sat, Apr 01, 2006 at 09:13:55PM +0100, Graeme Rocher wrote:
> > Hi calathus, I think the mailing list daemon strips out attachments,
> > can you send it to me directly
> >
> > Thanks
> > Graeme
> >
> > On 4/1/06, calathus <[hidden email]> wrote:
> > > I fixed this on SuSE 10.0. you may try my version of ant. i'll attache the
> > > ant file(copy under grails/ant/bin)
> > > C
>
> --
> Darren Davison
> Public Key: 0xDD356B0D
>
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Install on linux

Stephan.Schmidt
In reply to this post by graemer
Sorry, was  on  a conference at the weekend.

I used vi <file> -b to show the wrong linefeeds
and then with :%s/CTRL-M+ENTER//g

replaced those

a recode (or dos2unix <file> ) should  work on linux too

bye
-stephan

> Hi Cristian,
>
> One of our users, Stephan solved this before..
>
> Stephan, how did you solve this again? Could you seen me the working
> script? I know you  mentioned we should use an ant task as recommended
> by Jochen, but the problem is that the grails release distributions do
> not include the ant build or a requirement to have ant installed so
> this is not really an option.
>
> Thanks
> Graeme
>
> On 4/1/06, Cristian Porta <[hidden email]> wrote:
>>
>> Dear Grails users,
>> I have installed grails following all instruction on my
>> slackware box but I can't run it.
>>
>> (17:45:01 crx <~>) 0 $ grails
>> : bad interpreter: No such file or directoryev/grails/ant/bin/
>> ant: /bin/sh
>>
>> This is the env vars:
>> (17:45:03 crx <~>) 0 $ echo $PATH
>> /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/
>> htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/
>> usr/lib/qt/bin:/usr/share/texmf/bin:.:/home/crx/dev/grails/bin:/
>> usr/local/bin/apache-ant
>>
>> (17:46:15 crx <~>) 0 $ echo $GRAILS_HOME
>> /home/crx/dev/grails
>>
>> the binary grails and ant in the grails directory are u+x
>>
>>
>> Tanks,
>> Cristian.
>> --
>> View this message in context: http://www.nabble.com/Install-on- 
>> linux-t1379786.html#a3704789
>> Sent from the grails - user forum at Nabble.com.
>>
>>

--
   Stephan Schmidt
   [hidden email]

   PRESS ON. Nothing in the world can take the place of persistence.
   Talent will not; nothing in the world is more common than  
unsuccessful
   men with talent. Genius will not; unrewarded genius is almost a  
proverb.
   Education will not; the world is full of educated derelicts.  
Persistence
   and determination alone are omnipotent. - Calvin Coolidge


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Install on linux

yapex
you can just replace the ant dir with 1.6.5, it works for me.
good luck !
2006-04-02

On 4/2/06, Stephan J. Schmidt <[hidden email]> wrote:
Sorry, was  on  a conference at the weekend.

I used vi <file> -b to show the wrong linefeeds
and then with :%s/CTRL-M+ENTER//g

replaced those

a recode (or dos2unix <file> ) should  work on linux too

bye
-stephan

> Hi Cristian,

>
> One of our users, Stephan solved this before..
>
> Stephan, how did you solve this again? Could you seen me the working
> script? I know you  mentioned we should use an ant task as recommended
> by Jochen, but the problem is that the grails release distributions do
> not include the ant build or a requirement to have ant installed so
> this is not really an option.
>
> Thanks
> Graeme
>
> On 4/1/06, Cristian Porta <[hidden email]> wrote:
>>
>> Dear Grails users,
>> I have installed grails following all instruction on my
>> slackware box but I can't run it.
>>
>> (17:45:01 crx <~>) 0 $ grails
>> : bad interpreter: No such file or directoryev/grails/ant/bin/
>> ant: /bin/sh
>>
>> This is the env vars:
>> (17:45:03 crx <~>) 0 $ echo $PATH
>> /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/
>> htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/
>> usr/lib/qt/bin:/usr/share/texmf/bin:.:/home/crx/dev/grails/bin:/
>> usr/local/bin/apache-ant
>>
>> (17:46:15 crx <~>) 0 $ echo $GRAILS_HOME
>> /home/crx/dev/grails
>>

>> the binary grails and ant in the grails directory are u+x
>>
>>
>> Tanks,
>> Cristian.
>> --
>> View this message in context: http://www.nabble.com/Install-on-
>> linux-t1379786.html#a3704789
>> Sent from the grails - user forum at Nabble.com.
>>
>>

--
   Stephan Schmidt
   [hidden email]

   PRESS ON. Nothing in the world can take the place of persistence.
   Talent will not; nothing in the world is more common than
unsuccessful
   men with talent. Genius will not; unrewarded genius is almost a
proverb.
   Education will not; the world is full of educated derelicts.
Persistence
   and determination alone are omnipotent. - Calvin Coolidge



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Install on linux

Cristian Porta
In reply to this post by Cristian Porta
Ok, I have resolved converting win to unix file using awk (I don't have dos2unix ;)):

awk '{ sub("\r$", ""); print }' ant > ant2

Let's go to try grails.

Thanks to all!

Loading...