Skip Menu |

This queue is for tickets about the App-perlbrew CPAN distribution.

Report information
The Basics
Id: 69713
Status: open
Priority: 0/
Queue: App-perlbrew

People
Owner: Nobody in particular
Requestors: njh [...] bandsman.co.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.27
Fixed in: (no value)



Subject: Fails to install on Haiku
/tmp> curl -L -k http://xrl.us/perlbrewinstall > foo % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 648 100 648 0 0 662 0 --:--:-- --:--:-- --:--:-- 662 100 1336 100 1336 0 0 8918 0 --:--:-- --:--:-- --:--:-- 0 /tmp> ls -l total 4 -rw-r--r-- 1 user root 1984 Jul 22 22:53 foo /tmp> bash foo ## Download the latest perlbrew ## Download the packed patchperl ## Installing perlbrew runtime_loader: Cannot open file /usr/bin/env: No such file or directory ## Installing patchperl ## Done. foo: line 30: syntax error near unexpected token `<' foo: line 30: `<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>ERROR: The requested URL could not be retrieved</title> <style type="text/css"><!-- %l body :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; } :lang(he) { direction: rtl; } --></style> </head><body id=ERR_INVALID_URL> <div id="titles"> <h1>ERROR</h1> <h2>The requested URL could not be retrieved</h2> </div> <hr> <div id="content"> <p>The following error was encountered while trying to retrieve the URL: <a href="HTTP://>HTTP:///a></p> <blockquote id="error"> <p><b>Invalid URL</b></p> </blockquote> <p>Some aspect of the requested URL is incorrect.</p> <p>Some possible problems are:</p> <ul> <li><p>Missing or incorrect access protocol (should be <q>http://</q> or similar)</p></li> <li><p>Missing hostname</p></li> <li><p>Illegal double-escape in the URL-Path</p></li> <li><p>Illegal character in hostname; underscores are not allowed.</p></li> </ul> <p>Your cache administrator is <a href="mailto:webmaster">webmaster</a>.</p> <br> </div> <hr> <div id="footer"> <p>Generated Sat, 23 Jul 2011 02:53:47 GMT by localhost (squid/2.7.STABLE9)</p> <!-- ERR_INVALID_URL --> </div> </body></html> ' /tmp>
On Fri Jul 22 22:57:56 2011, njh@bandsman.co.uk wrote: Show quoted text
> /tmp> curl -L -k http://xrl.us/perlbrewinstall > foo > % Total % Received % Xferd Average Speed Time Time Time > Current > Dload Upload Total Spent Left > Speed > 100 648 100 648 0 0 662 0 --:--:-- --:--:-- --:--:-- > 662 > 100 1336 100 1336 0 0 8918 0 --:--:-- --:--:-- --:--:-- > 0 > /tmp> ls -l > total 4 > -rw-r--r-- 1 user root 1984 Jul 22 22:53 foo > /tmp> bash foo > > ## Download the latest perlbrew > ## Download the packed patchperl > > ## Installing perlbrew > runtime_loader: Cannot open file /usr/bin/env: No such file or directory > ## Installing patchperl > > ## Done. > foo: line 30: syntax error near unexpected token `<' > foo: line 30: `<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" > "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta > http-equiv="Content-Type" content="text/html; charset=utf-8"> > <title>ERROR: The requested URL could not be retrieved</title> <style > type="text/css"><!-- %l body :lang(fa) { direction: rtl; font-size: > 100%; font-family: Tahoma, Roya, sans-serif; float: right; } :lang(he) { > direction: rtl; } --></style> </head><body id=ERR_INVALID_URL> <div > id="titles"> <h1>ERROR</h1> <h2>The requested URL could not be > retrieved</h2> </div> <hr> <div id="content"> <p>The following error > was encountered while trying to retrieve the URL: <a > href="HTTP://>HTTP:///a></p> <blockquote id="error"> <p><b>Invalid > URL</b></p> </blockquote> <p>Some aspect of the requested URL is > incorrect.</p> <p>Some possible problems are:</p> <ul> <li><p>Missing > or incorrect access protocol (should be <q>http://</q> or > similar)</p></li> <li><p>Missing hostname</p></li> <li><p>Illegal > double-escape in the URL-Path</p></li> <li><p>Illegal character in > hostname; underscores are not allowed.</p></li> </ul> <p>Your cache > administrator is <a href="mailto:webmaster">webmaster</a>.</p> <br> > </div> <hr> <div id="footer"> <p>Generated Sat, 23 Jul 2011 02:53:47 > GMT by localhost (squid/2.7.STABLE9)</p> <!-- ERR_INVALID_URL --> </div> > </body></html> ' > /tmp>
Apparently there are some download error, and the /usr/bin/env is not there for Haiku. Does it have /bin/sh BTW ? I'd like to make the shebang just /bin/sh instead.
From: njh [...] bandsman.co.uk
Both bash and env are in /bin. I tried it again, no download error this time, but again the env failure: /tmp> curl -L -k http://xrl.us/perlbrewinstall >foo % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 648 100 648 0 0 774 0 --:--:-- --:--:-- --:--:-- 774 /tmp> bash foo ## Download the latest perlbrew ## Download the packed patchperl ## Installing perlbrew runtime_loader: Cannot open file /usr/bin/env: No such file or directory ## Installing patchperl ## Done. /tmp>
Subject: Re: [rt.cpan.org #69713] Fails to install on Haiku
Date: Sun, 24 Jul 2011 06:18:51 +0800
To: bug-App-perlbrew [...] rt.cpan.org
From: Kang-min Liu <gugod [...] gugod.org>
On 2011/7/23, at 下午11:29, njh@bandsman.co.uk via RT wrote: Show quoted text
> Queue: App-perlbrew > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=69713 > > > Both bash and env are in /bin. > > I tried it again, no download error this time, but again the env failure:
Thanks for the info, is there an `/bin/sh` shell ? I noticed that I probably should just use /bin/sh instead in the installer, instead of using the env trick. After all, it is a shell script, and all OS *should* have /bin/sh, just asking to make sure Haiku does :)
From: njh [...] bandsman.co.uk
Show quoted text
> Thanks for the info, is there an `/bin/sh` shell ? I noticed that I > probably should just use /bin/sh instead in the installer, > instead of using the env trick. After all, it is a shell script, and > all OS *should* have /bin/sh, just asking to make sure Haiku does :)
Yes, there is a /bin/sh - it is a symbolic link to /bin/bash. It isn't true that all OS will have a /bin/sh - Windows doesn't.