Porting to (what flavour of) Linux

Addendum to previous post

Postby xProgrammer » Sat Jul 28, 2007 10:58 am

Five Linux manual says to use

./buildx.sh tutor01

But when I do that I get:

Cannot open input file tutor01

I think I have to change the first $1 in buildx.sh to $1.prg and it might work - but so far haven't managed to get write permission to that file.

xProgrammer
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Postby Antonio Linares » Sat Jul 28, 2007 11:00 am

Doug,

From the console type:

whoami

and check if you are root or a user. You should reinstall FiveLinux and xHarbour as a user, not as the admin (root)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42084
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Will do - but I still suspect buildx.sh

Postby xProgrammer » Sat Jul 28, 2007 12:50 pm

Hi Antonio

I am redoing everything - partly because of misunderstanding about ubuntu install, but I was logged on as a user (I believe) although I had used su to be able to execute and root was the directory it put files into.

That may be all confused but I think the main point is that ./buildx.sh
tutor01.prg found the file and generated a .c file so I think that there is a script issue because ./buildx.sh tutor01 didn't find the file.

Did the above. chmod +x must work differently from chmod o=x because after chmod o=x I could only execute using su - which meant software installed in /root/ but after chmod +x could execute as me.

Needed to chmod +x buildx.sh but previously advised symptoms occurred.

Was now able to edit buildx.sh and changed the line that comiles to c code by inserting .prg after $1 and guerss what - up came a "Hello world".
Very good!

Thanks for all your input.

But I do believe that buildx.sh as supplied is gfaulty and humbly suggest that you check it out because I think my modification (or some other) is required to make it work.tutor01

One further question. I can run tutor01 from the terminal OK - but when it exits I get a sort of terminal screen but its now white on black rather than black on white and less functional. Plus I can't seem to get it to run from the Ubuntu file browser - which strikes me as odd - my little play with Fedora Core I seemed to be able to run apps happily from a file browser.

But I have compiled FiveWin under Linux!!!!!!

Thanks

Doug (xProgrammer)[/list]
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Postby Antonio Linares » Sat Jul 28, 2007 12:58 pm

Doug,

Don't install FiveLinux and xHarbour using sudo or you will be doing it as root.

There is no need to login as root to install FiveLinux.

Glad to know you are moving forward :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42084
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Previous

Return to FiveLinux / FiveDroid (Android)

Who is online

Users browsing this forum: No registered users and 3 guests