Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Perl, Bad interpreter [partially solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
chINeSe mIDgEts
Apprentice
Apprentice


Joined: 02 Mar 2004
Posts: 209
Location: look behind you

PostPosted: Wed Jul 12, 2006 9:01 pm    Post subject: Perl, Bad interpreter [partially solved] Reply with quote

Hey all, I have a Mac .dmg file that I want to burn to a cd. I found this handy perl script that supposedly converts it to a .iso file. However when I run it I get this error

Code:
willy@20x6 ~ $ dmg2iso.pl
: bad interpreter: No such file or directoryerl


I've tried using the windows .exe with wine, but that didnt work too well. Also, my permissions are set to +rwx for the script.

Any Ideas?
_________________
...it must have been very demanding having to learn how to use Microsoft Office, right up there with other lofty challenges like learning how to zip your fly without getting your dick caught.


Last edited by chINeSe mIDgEts on Wed Jul 12, 2006 11:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Wed Jul 12, 2006 9:22 pm    Post subject: Reply with quote

Try changing line one of the script to
Code:

#!/usr/bin/env perl
Back to top
View user's profile Send private message
chINeSe mIDgEts
Apprentice
Apprentice


Joined: 02 Mar 2004
Posts: 209
Location: look behind you

PostPosted: Wed Jul 12, 2006 9:39 pm    Post subject: Reply with quote

No dice.

Code:
willy@20x6 ~ $ dmg2iso.pl
: No such file or directory

_________________
...it must have been very demanding having to learn how to use Microsoft Office, right up there with other lofty challenges like learning how to zip your fly without getting your dick caught.
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Wed Jul 12, 2006 9:48 pm    Post subject: Reply with quote

Code:

Usage: dmg2iso.pl <filename.dmg> <filename.iso>
Back to top
View user's profile Send private message
chINeSe mIDgEts
Apprentice
Apprentice


Joined: 02 Mar 2004
Posts: 209
Location: look behind you

PostPosted: Wed Jul 12, 2006 10:18 pm    Post subject: Reply with quote

didl wrote:
Code:

Usage: dmg2iso.pl <filename.dmg> <filename.iso>


I feel like I cant explain this well, so I''l illustrate it.

Code:
willy@20x6 /tmp $ wine dmg2iso.exe
dmg2iso v0.2c by vu1tur (vu1tur@gmx.de)

Syntax: dmg2iso <filename.dmg> <filename.iso>


But I cant use the exe cause it fails somewhre in the middle, but thats what it should output if it were working.

Heres what happens whe i run the script, after I made the changes you told me to.

Code:
willy@20x6 /tmp $ dmg2iso.pl
: No such file or directory


What you posted is what should properly display if everything was working. Something is still wrong with the script and/or my computer.
_________________
...it must have been very demanding having to learn how to use Microsoft Office, right up there with other lofty challenges like learning how to zip your fly without getting your dick caught.
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Wed Jul 12, 2006 10:34 pm    Post subject: Reply with quote

How about
Code:

#!/usr/bin/perl -w

for the first line. Seems to work for me even though
I haven't tried the conversion itself.

Code:

[markus@despina] ./dmg2iso.pl
dmg2iso v0.2a by vu1tur (vu1tur@gmx.de)

Syntax: dmg2iso.pl filename.dmg filename.iso
Back to top
View user's profile Send private message
chINeSe mIDgEts
Apprentice
Apprentice


Joined: 02 Mar 2004
Posts: 209
Location: look behind you

PostPosted: Wed Jul 12, 2006 11:14 pm    Post subject: Reply with quote

Success, well sort of. The script runs, but doesnt work. It produces a faulty iso image, much like the windows executable did. Oh well, Thanks a ton for the help.


EDIT: Correction: it is faulty in the sense that it can not be burned as an iso image, but it can be mounted.
_________________
...it must have been very demanding having to learn how to use Microsoft Office, right up there with other lofty challenges like learning how to zip your fly without getting your dick caught.
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Wed Jul 12, 2006 11:52 pm    Post subject: Reply with quote

Too bad :(

I'd try contacting the author with an error report. Maybe
there's an easy fix. Good luck!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum