View previous topic :: View next topic |
Author |
Message |
chINeSe mIDgEts Apprentice
Joined: 02 Mar 2004 Posts: 209 Location: look behind you
|
Posted: Wed Jul 12, 2006 9:01 pm Post subject: Perl, Bad interpreter [partially solved] |
|
|
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 |
|
|
didl Retired Dev
Joined: 09 Sep 2003 Posts: 1106 Location: Pittsburgh, PA
|
Posted: Wed Jul 12, 2006 9:22 pm Post subject: |
|
|
Try changing line one of the script to
Code: |
#!/usr/bin/env perl
|
|
|
Back to top |
|
|
chINeSe mIDgEts Apprentice
Joined: 02 Mar 2004 Posts: 209 Location: look behind you
|
Posted: Wed Jul 12, 2006 9:39 pm Post subject: |
|
|
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 |
|
|
didl Retired Dev
Joined: 09 Sep 2003 Posts: 1106 Location: Pittsburgh, PA
|
Posted: Wed Jul 12, 2006 9:48 pm Post subject: |
|
|
Code: |
Usage: dmg2iso.pl <filename.dmg> <filename.iso>
|
|
|
Back to top |
|
|
chINeSe mIDgEts Apprentice
Joined: 02 Mar 2004 Posts: 209 Location: look behind you
|
Posted: Wed Jul 12, 2006 10:18 pm Post subject: |
|
|
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 |
|
|
didl Retired Dev
Joined: 09 Sep 2003 Posts: 1106 Location: Pittsburgh, PA
|
Posted: Wed Jul 12, 2006 10:34 pm Post subject: |
|
|
How about
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 |
|
|
chINeSe mIDgEts Apprentice
Joined: 02 Mar 2004 Posts: 209 Location: look behind you
|
Posted: Wed Jul 12, 2006 11:14 pm Post subject: |
|
|
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 |
|
|
didl Retired Dev
Joined: 09 Sep 2003 Posts: 1106 Location: Pittsburgh, PA
|
Posted: Wed Jul 12, 2006 11:52 pm Post subject: |
|
|
Too bad
I'd try contacting the author with an error report. Maybe
there's an easy fix. Good luck! |
|
Back to top |
|
|
|