For what it's worth, I've had somewhat similar problems executing the
scripts in the bin directory after transferring them from a
Windows-based machine to a Unix-like system.

You might check that the line endings in the file haven't been changed
to DOS-style endings, and if they have, convert them back with a command
such as dos2unix.  Not sure this is the same issue but maybe worth
checking into.


felipe Melero wrote:
> Yes, I'm running it from dspace/bin directory but no way to get it
> working...
>
> surely is a matter of unix, I'm a chrooted user...
>
> regards
> Felipe
>
> Robin Taylor escribió:
>> That's good. #!/bin/sh at the start of the script just tells the OS what 
>> shell it should use to run the script, and it seems you have the required 
>> shell so you shouldn't have to change it to use bash. What directory were 
>> you in when you ran ./create-administrator ? Were you in the dspace/bin 
>> directory ?
>>
>> Cheers, Robin.
>>
>>
>> Robin Taylor
>> Main Library
>> University of Edinburgh
>> Tel. 0131 6515208  
>>
>>   
>>> -----Original Message-----
>>> From: felipe Melero [mailto:[email protected]] 
>>> Sent: 07 January 2009 12:56
>>> To: dspace tech
>>> Subject: Re: [Dspace-tech] problem executing create-administrator
>>>
>>> Hi Robin,
>>> it seems that is present on the machine, as well as bash.
>>>
>>> -bash-3.00$ ls -l /bin/sh
>>> -rwxr-xr-x  1 root root 616248 Apr 12  2006 /bin/sh
>>>
>>> regards,
>>> Felipe
>>>
>>> Robin Taylor escribió: 
>>>
>>>     Hi felipe,
>>>     
>>>     I don't have a machine with Red Hat on it near so would 
>>> you mind entering...
>>>     
>>>     ls -l /bin/sh
>>>     
>>>     ...and tell me what the response is ?
>>>     
>>>     It sounds like /bin/sh is not present on your machine. 
>>> If that is the case then you will need to change script dsrun 
>>> as well as create-administrator.
>>>     
>>>     Cheers, Robin.
>>>     
>>>     
>>>     
>>>      
>>>     
>>>     Robin Taylor
>>>     Main Library
>>>     University of Edinburgh
>>>     Tel. 0131 6515208
>>>     
>>>       
>>>
>>>             -----Original Message-----
>>>             From: felipe Melero [mailto:[email protected]]
>>>             Sent: 07 January 2009 12:22
>>>             To: dspace tech
>>>             Subject: [Dspace-tech] problem executing 
>>> create-administrator
>>>             
>>>             Hi all,
>>>             
>>>             I have a problem executing  the script 
>>> create-adminstrator, I
>>>             get the following error: "bad interpreter".
>>>             
>>>             -bash-3.00$ ./create-administrator
>>>             : bad interpreter: No such file or directory
>>>             
>>>             if I change the line inside the script       
>>> #!/bin/sh  to
>>>             #!/bin/bash  I get other errors:
>>>             
>>>             -bash-3.00$ ./create-administrator
>>>             ./dsrun: line 61: sed: command not found
>>>             ./dsrun: line 70: java: command not found
>>>             
>>>             Does anybody know how to make it work? I have 
>>> Red Hat Linux if helps.
>>>             
>>>             Thanks in advance,
>>>             
>>>             Felipe
>>>             
>>>             
>>>                 
>>>
>>>     
>>>     
>>>       
>>>
>>>
>>>     
>>
>>
>>   
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
> http://p.sf.net/sfu/Xq1LFB
> ------------------------------------------------------------------------
>
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>   


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to