Operating System - HP-UX
1753777 Members
7418 Online
108799 Solutions
New Discussion юеВ

Install Jython on HP-UX B.11.11

 
Alain Yoshida
Regular Advisor

Install Jython on HP-UX B.11.11

I install Jython on hp-ux, the installation is successfuly, but when I try to run Jython, I got the following error msg.
jython2.5.2rc3 > ./jython
No such file or directory: bash
It is strange, the file is there and I use ksh on the hp-ux.

uname -a
HP-UX B.11.11 U 9000/800
7 REPLIES 7
Shibin_2
Honored Contributor

Re: Install Jython on HP-UX B.11.11

have you tried any different method to run it?

e.g.: jython or sh jython
Regards
Shibin
Alain Yoshida
Regular Advisor

Re: Install Jython on HP-UX B.11.11

sh jython
jython[50]: Syntax error at line 51 : `(' is not expected.
Shibin_2
Honored Contributor

Re: Install Jython on HP-UX B.11.11

What is in that program? Is this compatible with the shell / platform ?
Regards
Shibin
Dennis Handly
Acclaimed Contributor

Re: Install Jython on HP-UX B.11.11

>./jython
>No such file or directory: bash
>It is strange, the file is there and I use ksh

Why is this strange? It says you must have bash, even though you said you use a real shell.

The first line of jython most likely uses the bash interpreter and you will either have to install bash or port your jython script to a real shell.

>jython[50]: Syntax error at line 51 : `(' is not expected.

This is one of the areas you would need to port.
Alain Yoshida
Regular Advisor

Re: Install Jython on HP-UX B.11.11

Jython is just like Perl , Python, I install this on the server, so I don't think I should change the source code. When I install Jython,
I install use root, the installation program suggest to install under /root, but also can select another dir, so I change the dir to /opt. if this cause issue ?someone have the experience to install Jython on hp-ux ?
dirk dierickx
Honored Contributor

Re: Install Jython on HP-UX B.11.11

if you do not want to change the code (why not? it's open source after all, so you can!) you will need to install bash.

do 'head jython', you'll probably notice it uses bash.

$ head jython
#!/usr/bin/env bash


there's your proof.
Alain Yoshida
Regular Advisor

Re: Install Jython on HP-UX B.11.11

ok