* Perl
@ 2002-12-04 15:48 Paul Kraus
2002-12-05 6:56 ` Perl ichi
0 siblings, 1 reply; 36+ messages in thread
From: Paul Kraus @ 2002-12-04 15:48 UTC (permalink / raw)
To: linux-newbie
[-- Attachment #1: Type: text/plain, Size: 224 bytes --]
How can I make this assignment in one statement. I know its going to be
something easy.
$path=$5;
$path=~s/ /\\ /g;
Paul Kraus
Network Administrator
PEL Supply Company
216.267.5775 Voice
216-267-6176 Fax
www.pelsupply.com
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Paul Kraus (pkraus@pelsupply.com).vcf --]
[-- Type: text/x-vcard; name="Paul Kraus (pkraus@pelsupply.com).vcf", Size: 592 bytes --]
BEGIN:VCARD
VERSION:2.1
N:Kraus;Paul
FN:Paul Kraus (pkraus@pelsupply.com)
ORG:PEL Supply Company
TITLE:Network Administrator
TEL;WORK;VOICE:(216) 267-5775
TEL;CELL;VOICE:(216) 410-5526
TEL;WORK;FAX:(216) 267-6176
ADR;WORK:;;4666 Manufacturing Road;Cleveland;Ohio;44135;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:4666 Manufacturing Road=0D=0ACleveland, Ohio 44135=0D=0AUnited States of Ame=
rica
ADR;HOME:;;;;;;United States
LABEL;HOME:United States
URL;WORK:http://www.pelsupply.com
EMAIL;PREF;INTERNET:pkraus@pelsupply.com
REV:20020416T182124Z
END:VCARD
^ permalink raw reply [flat|nested] 36+ messages in thread
* re: Perl
@ 2002-12-04 19:24 Alan Womack
0 siblings, 0 replies; 36+ messages in thread
From: Alan Womack @ 2002-12-04 19:24 UTC (permalink / raw)
To: Paul Kraus; +Cc: linux-newbie
> How can I make this assignment in one statement. I know its going to be
something easy.
$path=$5;
$path=~s/ /\\ /g; <
won't
$path=$5=~s/ /\\ /g;
work? maybe have to put () around the $5=~, but I think it will work without that.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2002-12-04 15:48 Perl Paul Kraus
@ 2002-12-05 6:56 ` ichi
0 siblings, 0 replies; 36+ messages in thread
From: ichi @ 2002-12-05 6:56 UTC (permalink / raw)
To: Paul Kraus; +Cc: linux-newbie
Paul Kraus wrote:
>
> How can I make this assignment in one statement.
> I know its going to be something easy.
> $path=$5;
> $path=~s/ /\\ /g;
I don't understand. Is this part of a bash script?
It looks like you a trying to assign the fifth parameter
(path=$5) to a variable named path (which BTW is not the
PATH) and then manipulate it in some way (something to do
with \ I think).
Perhaps this is some language that I am unfamiliar with?
If so, I apologize. However, if is bash, I suggest you
explain in words what you want to do, and I will try to
script it.
Cheers,
Steven
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2004-04-01 5:54 Perl Scott@Charter
@ 2004-04-01 5:29 ` tyler
2004-04-01 6:54 ` Perl Scott@Charter
2004-04-05 6:10 ` Perl Nico Schottelius
2004-04-19 19:47 ` Perl Matt Howard
2 siblings, 1 reply; 36+ messages in thread
From: tyler @ 2004-04-01 5:29 UTC (permalink / raw)
To: Scott@Charter; +Cc: Linux-Admin-Group
www.google.com/linux
and then a search for perl... or books! did you know they have books with
just this sort of thing in them! save your eyes, read a book my friend.
On Wed, 31 Mar 2004, Scott@Charter wrote:
> Can anyone please help me with a short example Perl script that will print
> out all the odd numbers between 1 and 10? I don't know Perl and am trying
> to learn it. I wrote a bash script to do the same thing and wanted to
> compare it.
>
> There must be a Perl expert out there somewhere who can help me?
>
> Thanks-
> Scott
>
^ permalink raw reply [flat|nested] 36+ messages in thread
* Perl
@ 2004-04-01 5:54 Scott@Charter
2004-04-01 5:29 ` Perl tyler
` (2 more replies)
0 siblings, 3 replies; 36+ messages in thread
From: Scott@Charter @ 2004-04-01 5:54 UTC (permalink / raw)
To: Linux-Admin-Group
[-- Attachment #1: Type: text/plain, Size: 314 bytes --]
Can anyone please help me with a short example Perl script that will print
out all the odd numbers between 1 and 10? I don't know Perl and am trying
to learn it. I wrote a bash script to do the same thing and wanted to
compare it.
There must be a Perl expert out there somewhere who can help me?
Thanks-
Scott
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Scott Smallsreed.vcf --]
[-- Type: text/x-vcard; name="Scott Smallsreed.vcf", Size: 366 bytes --]
BEGIN:VCARD
VERSION:2.1
N:Smallsreed;Scott
FN:Scott Smallsreed
TEL;HOME;VOICE:775-849-8411
TEL;HOME;FAX:775-849-8412
ADR;HOME:;;3030 Chipmunk Dr.;Washoe Valley;Nevada;89704;US
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:3030 Chipmunk Dr.=0D=0AWashoe Valley, Nevada 89704=0D=0AUS
EMAIL;PREF;INTERNET:scott.smallsreed@mindspring.com
REV:20040401T055438Z
END:VCARD
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2004-04-01 5:29 ` Perl tyler
@ 2004-04-01 6:54 ` Scott@Charter
2004-04-01 7:25 ` Perl Richard Nairn
` (4 more replies)
0 siblings, 5 replies; 36+ messages in thread
From: Scott@Charter @ 2004-04-01 6:54 UTC (permalink / raw)
To: tyler; +Cc: Linux-Admin-Group
Then why do these groups exist? Did you ever stop and think that maybe I am
in a rush? Did you ever stop and think that maybe I am unemployed, looking
for a job, and can't afford a book? Did you ever stop and think that there
are kind, intelligent people out there who are willing and happy to just
answer questions politely that are asked politely? I guess we can't all
have your flare for life!
Go spread your cheer in the grumpy user group. (and I'm being nice) There
are nice people out there who are willing to help me out. Some people just
want/need a little help with certain things. Why did you become a member of
this group?
Besides, I have a useless Perl book.
----- Original Message -----
From: "tyler" <tyler@reversedrecords.com>
To: "Scott@Charter" <scott.smallsreed@charter.net>
Cc: "Linux-Admin-Group" <linux-admin@vger.kernel.org>
Sent: Wednesday, March 31, 2004 9:29 PM
Subject: Re: Perl
>
> www.google.com/linux
>
> and then a search for perl... or books! did you know they have books with
> just this sort of thing in them! save your eyes, read a book my friend.
>
> On Wed, 31 Mar 2004, Scott@Charter wrote:
>
> > Can anyone please help me with a short example Perl script that will
print
> > out all the odd numbers between 1 and 10? I don't know Perl and am
trying
> > to learn it. I wrote a bash script to do the same thing and wanted to
> > compare it.
> >
> > There must be a Perl expert out there somewhere who can help me?
> >
> > Thanks-
> > Scott
> >
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2004-04-01 6:54 ` Perl Scott@Charter
@ 2004-04-01 7:25 ` Richard Nairn
2004-04-01 8:20 ` Perl Dan Kubilos
` (3 subsequent siblings)
4 siblings, 0 replies; 36+ messages in thread
From: Richard Nairn @ 2004-04-01 7:25 UTC (permalink / raw)
To: Scott@Charter; +Cc: Linux-Admin-Group
Scott,
The issue is that you have sent about a dozen messages, which show little
effort on your part to try and figure out these basic problems. Quite
frankly, if you are unable to do these, which you say is a screening
portion of an interview, that how do you expect to show any compentance
within the realm if you get past that part. For a large part (and I don't
speak for the entire list) everyone is willing to pitch in, if we can see
that a reasonable effort has been shown, or if someone has a non-trivial
problem. I still stand by what I said earlier, you are trying to get us to
do your work for you. The web has a wealth of introductory material for
all sorts of stuff. Get your feet wet. If you can't afford a book, go to
the library, or search the web for reference material.
This list is an admin list, not a learn to program bash or perl group. It
isn't that we don't want to help. But help yourself first. You won't get a
job if you don't know basic fundamentals.
That said, for printing odd numbers 1-10. you can do it either of a few
ways. One is simply to start at one and increment by 2 which will give you
odd numbers all the way. Or if you want to be different, increment by one,
and use % operator to find numbers that aren't divisible by 2.
#!/usr/bin/perl
for ($i=1; $i < 10 ; $i++)
{
if ($i%2 !=0)
{
print "$i\n";
}
}
for ($i=1 ; $i < 10 ; $i+=2)
{
print "$i\n";
}
Good luck on the job hunt.
On Wed, 31 Mar 2004 22:54:22 -0800, Scott@Charter
<scott.smallsreed@charter.net> wrote:
> Then why do these groups exist? Did you ever stop and think that maybe
> I am
> in a rush? Did you ever stop and think that maybe I am unemployed,
> looking
> for a job, and can't afford a book? Did you ever stop and think that
> there
> are kind, intelligent people out there who are willing and happy to just
> answer questions politely that are asked politely? I guess we can't all
> have your flare for life!
>
> Go spread your cheer in the grumpy user group. (and I'm being nice)
> There
> are nice people out there who are willing to help me out. Some people
> just
> want/need a little help with certain things. Why did you become a
> member of
> this group?
>
> Besides, I have a useless Perl book.
>
>
> ----- Original Message -----
> From: "tyler" <tyler@reversedrecords.com>
> To: "Scott@Charter" <scott.smallsreed@charter.net>
> Cc: "Linux-Admin-Group" <linux-admin@vger.kernel.org>
> Sent: Wednesday, March 31, 2004 9:29 PM
> Subject: Re: Perl
>
>
>>
>> www.google.com/linux
>>
>> and then a search for perl... or books! did you know they have books
>> with
>> just this sort of thing in them! save your eyes, read a book my friend.
>>
>> On Wed, 31 Mar 2004, Scott@Charter wrote:
>>
>> > Can anyone please help me with a short example Perl script that will
> print
>> > out all the odd numbers between 1 and 10? I don't know Perl and am
> trying
>> > to learn it. I wrote a bash script to do the same thing and wanted to
>> > compare it.
>> >
>> > There must be a Perl expert out there somewhere who can help me?
>> >
>> > Thanks-
>> > Scott
>> >
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
| Richard Nairn Specializing in Linux
| Nairn Consulting Web / Database Solutions
| Calgary, AB | Richard@NairnConsulting.ca
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2004-04-01 6:54 ` Perl Scott@Charter
2004-04-01 7:25 ` Perl Richard Nairn
@ 2004-04-01 8:20 ` Dan Kubilos
2004-04-01 14:51 ` Perl Adam Lang
` (2 subsequent siblings)
4 siblings, 0 replies; 36+ messages in thread
From: Dan Kubilos @ 2004-04-01 8:20 UTC (permalink / raw)
To: Scott@Charter; +Cc: tyler, Linux-Admin-Group
Dude,
Relax. To get good info out of lists come prepared with good questions.
Especially be prepared for "RTFM".
This list is sparse. But, the best lists I belong to will give you the
same "grumpy"
response if your questions are posted like this one.
Don't mean to be cheerless.
On Wed, 31 Mar 2004, Scott@Charter wrote:
> Then why do these groups exist? Did you ever stop and think that maybe I am
> in a rush? Did you ever stop and think that maybe I am unemployed, looking
> for a job, and can't afford a book? Did you ever stop and think that there
> are kind, intelligent people out there who are willing and happy to just
> answer questions politely that are asked politely? I guess we can't all
> have your flare for life!
>
> Go spread your cheer in the grumpy user group. (and I'm being nice) There
> are nice people out there who are willing to help me out. Some people just
> want/need a little help with certain things. Why did you become a member of
> this group?
>
> Besides, I have a useless Perl book.
>
>
> ----- Original Message -----
> From: "tyler" <tyler@reversedrecords.com>
> To: "Scott@Charter" <scott.smallsreed@charter.net>
> Cc: "Linux-Admin-Group" <linux-admin@vger.kernel.org>
> Sent: Wednesday, March 31, 2004 9:29 PM
> Subject: Re: Perl
>
>
> >
> > www.google.com/linux
> >
> > and then a search for perl... or books! did you know they have books with
> > just this sort of thing in them! save your eyes, read a book my friend.
> >
> > On Wed, 31 Mar 2004, Scott@Charter wrote:
> >
> > > Can anyone please help me with a short example Perl script that will
> print
> > > out all the odd numbers between 1 and 10? I don't know Perl and am
> trying
> > > to learn it. I wrote a bash script to do the same thing and wanted to
> > > compare it.
> > >
> > > There must be a Perl expert out there somewhere who can help me?
> > >
> > > Thanks-
> > > Scott
> > >
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Dan Kubilos __\o_ ^
K-8 Tech Coord
http://www.oxnardsd.org
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2004-04-01 6:54 ` Perl Scott@Charter
2004-04-01 7:25 ` Perl Richard Nairn
2004-04-01 8:20 ` Perl Dan Kubilos
@ 2004-04-01 14:51 ` Adam Lang
2004-04-01 18:48 ` Perl Bradley Hook
2004-04-05 2:30 ` Perl Bradley D. Thornton
4 siblings, 0 replies; 36+ messages in thread
From: Adam Lang @ 2004-04-01 14:51 UTC (permalink / raw)
Cc: Linux-Admin-Group
Email lists do not exist to do all the work for you. You tend to get the
best results in situations where it is "I am trying to do such and such and
such. This is the config I am using and this is the error I am getting. I
searched google for an answer, but the solution I found didn't help. any
ideas?"
People are not here to do the work. They are here to offer advice and a
push in the right to direction to help get past sticking points.
As for saying "you're in a rush", that is probably the WORST thing you can
say on these lists. Just about everyone on here is at work and doing their
own job. It is rude and tacky to assume your problems are so important that
you can't do initial research yourself, but we can take time out of our day
to help you because you are lazy.
As for the "afford a book excuse", it has no bearing. When it comes to
programming, there is SO much documentation and examples online, that the
only reason to buy a book is to have an ordered hard copy reference
material.
Just keep in mind that the "intelligent and friendly people" that are on
lists, are typically at work and very busy themselves. No one is obligated
to answer your questions and you will see the well run dry if you continue
to expect others to do your work.
----- Original Message -----
From: "Scott@Charter" <scott.smallsreed@charter.net>
To: "tyler" <tyler@reversedrecords.com>
Cc: "Linux-Admin-Group" <linux-admin@vger.kernel.org>
Sent: Thursday, April 01, 2004 1:54 AM
Subject: Re: Perl
> Then why do these groups exist? Did you ever stop and think that maybe I
am
> in a rush? Did you ever stop and think that maybe I am unemployed,
looking
> for a job, and can't afford a book? Did you ever stop and think that
there
> are kind, intelligent people out there who are willing and happy to just
> answer questions politely that are asked politely? I guess we can't all
> have your flare for life!
>
> Go spread your cheer in the grumpy user group. (and I'm being nice) There
> are nice people out there who are willing to help me out. Some people
just
> want/need a little help with certain things. Why did you become a member
of
> this group?
>
> Besides, I have a useless Perl book.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2004-04-01 6:54 ` Perl Scott@Charter
` (2 preceding siblings ...)
2004-04-01 14:51 ` Perl Adam Lang
@ 2004-04-01 18:48 ` Bradley Hook
2004-04-05 2:30 ` Perl Bradley D. Thornton
4 siblings, 0 replies; 36+ messages in thread
From: Bradley Hook @ 2004-04-01 18:48 UTC (permalink / raw)
To: Scott@Charter; +Cc: Linux-Admin-Group
You would be better off in IRC for quick questions. These mailing lists
go to a lot of people, so lots of small beginner questions that aren't
exactly on topic (this isn't a PERL list) will just annoy people. In IRC
you will likely get a faster response, and thousands of people will be
spared the 20+ emails that have been generated from your discussion so far.
I would recommend EFNet or Freenode, as I've found lots of helpful folks
on those networks.
~Brad
Scott@Charter wrote:
> Then why do these groups exist? Did you ever stop and think that maybe I am
> in a rush? Did you ever stop and think that maybe I am unemployed, looking
> for a job, and can't afford a book? Did you ever stop and think that there
> are kind, intelligent people out there who are willing and happy to just
> answer questions politely that are asked politely? I guess we can't all
> have your flare for life!
>
> Go spread your cheer in the grumpy user group. (and I'm being nice) There
> are nice people out there who are willing to help me out. Some people just
> want/need a little help with certain things. Why did you become a member of
> this group?
>
> Besides, I have a useless Perl book.
>
>
> ----- Original Message -----
> From: "tyler" <tyler@reversedrecords.com>
> To: "Scott@Charter" <scott.smallsreed@charter.net>
> Cc: "Linux-Admin-Group" <linux-admin@vger.kernel.org>
> Sent: Wednesday, March 31, 2004 9:29 PM
> Subject: Re: Perl
>
>
>
>>www.google.com/linux
>>
>>and then a search for perl... or books! did you know they have books with
>>just this sort of thing in them! save your eyes, read a book my friend.
>>
>>On Wed, 31 Mar 2004, Scott@Charter wrote:
>>
>>
>>>Can anyone please help me with a short example Perl script that will
>
> print
>
>>>out all the odd numbers between 1 and 10? I don't know Perl and am
>
> trying
>
>>>to learn it. I wrote a bash script to do the same thing and wanted to
>>>compare it.
>>>
>>>There must be a Perl expert out there somewhere who can help me?
>>>
>>>Thanks-
>>>Scott
>>>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2004-04-01 6:54 ` Perl Scott@Charter
` (3 preceding siblings ...)
2004-04-01 18:48 ` Perl Bradley Hook
@ 2004-04-05 2:30 ` Bradley D. Thornton
2004-04-05 5:09 ` Perl Bradley D. Thornton
4 siblings, 1 reply; 36+ messages in thread
From: Bradley D. Thornton @ 2004-04-05 2:30 UTC (permalink / raw)
To: linux-admin
Hi Scott :(
Seems you misundertand what these lists are for. These lists are for people
to help people who are helping theirselves, and for people who are helping
themselves receive help from people who want to help people helping
themselves.
There are two things you are going to see when you post something like the
thread you just did, and to varying degrees:
1.) RTFM
2.) STFW
You've already received suggestions like that so I won't bother engaging in
a redundant act.
Now, If you're looking for a job as a Perl programmer and the book you have
isn't doing it for you (and you don't have the money to buy another one),
you prolly shouldn't be looking for a job programming in Perl.
Also, Oreilly has books online for you, some they charge for but the perl
book is free if you look for it. You can even print a hard copy if you have
enough paper.
Next time, instead of asking someone to "Do it for you", why don't you try
posting your broken code here (or on a list that is more on topic), pointing
out to the rest of us where you think the program is bombing?
You should also prolly d/l OpenPerlIDE at sourceforge, if you're running a
wynd0z3 workstation, it's got a lot of help.
Finally, since you site a lack of money, there are lots of self help
tutorials out there for Perl as well - but if you still want someone to "Do
it for you", instead of "Help you", then I'm your man. Simply lemme know
your fax number and I'll shoot you on over my Technical Services Agreement,
then you sign and fax back. Then I'll write the application for you :)
There's a one hour minimum, of course, so you will be billed for one hour at
$85.00/hr.
"Scott@Charter" <scott.smallsreed@charter.net> wrote in message
news:017601c417b6$2a379930$020aa8c0@Scott...
> Then why do these groups exist? Did you ever stop and think that maybe I
am
> in a rush? Did you ever stop and think that maybe I am unemployed,
looking
> for a job, and can't afford a book? Did you ever stop and think that
there
> are kind, intelligent people out there who are willing and happy to just
> answer questions politely that are asked politely? I guess we can't all
> have your flare for life!
>
> Go spread your cheer in the grumpy user group. (and I'm being nice) There
> are nice people out there who are willing to help me out. Some people
just
> want/need a little help with certain things. Why did you become a member
of
> this group?
>
> Besides, I have a useless Perl book.
>
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2004-04-05 2:30 ` Perl Bradley D. Thornton
@ 2004-04-05 5:09 ` Bradley D. Thornton
0 siblings, 0 replies; 36+ messages in thread
From: Bradley D. Thornton @ 2004-04-05 5:09 UTC (permalink / raw)
To: linux-admin
Well it seems that our friend (NOT), scott.smallsreed@charter.net is a
certifiable bonehead. I just received a response from him with some pretty
colorful language - dayglow, I would say ;)
Scott, I'm not going to dignify your filthy comments by responding to that
email, but your original post, which was is only five days old, certainly
doesn't show the level of your animosity that you shared with me privately.
If that O'Reilly book is too much for you then perhaps this isn't the thing
for you after all. It's an RTFM world out there, and you'll only last one or
two days on the job anyway if you can't swim in that pond.
Since you feel such anger against everyone on these lists, then perhaps it
is best if you just stick to your job as a plumber ;)
One more thing - if you didn't care, then why did you send such a long
private flame? ;)
TTFN.
"Bradley D. Thornton" <gmane@NorthTech.US> wrote in message
news:c4qgbf$7l1$1@sea.gmane.org...
> Hi Scott :(
>
> Seems you misundertand what these lists are for. These lists are for
people
> to help people who are helping theirselves, and for people who are helping
> themselves receive help from people who want to help people helping
> themselves.
>
> There are two things you are going to see when you post something like the
> thread you just did, and to varying degrees:
>
> 1.) RTFM
>
> 2.) STFW
>
> You've already received suggestions like that so I won't bother engaging
in
> a redundant act.
>
> Now, If you're looking for a job as a Perl programmer and the book you
have
> isn't doing it for you (and you don't have the money to buy another one),
> you prolly shouldn't be looking for a job programming in Perl.
>
> Also, Oreilly has books online for you, some they charge for but the perl
> book is free if you look for it. You can even print a hard copy if you
have
> enough paper.
>
> Next time, instead of asking someone to "Do it for you", why don't you try
> posting your broken code here (or on a list that is more on topic),
pointing
> out to the rest of us where you think the program is bombing?
>
> You should also prolly d/l OpenPerlIDE at sourceforge, if you're running a
> wynd0z3 workstation, it's got a lot of help.
>
> Finally, since you site a lack of money, there are lots of self help
> tutorials out there for Perl as well - but if you still want someone to
"Do
> it for you", instead of "Help you", then I'm your man. Simply lemme know
> your fax number and I'll shoot you on over my Technical Services
Agreement,
> then you sign and fax back. Then I'll write the application for you :)
> There's a one hour minimum, of course, so you will be billed for one hour
at
> $85.00/hr.
>
>
>
> "Scott@Charter" <scott.smallsreed@charter.net> wrote in message
> news:017601c417b6$2a379930$020aa8c0@Scott...
> > Then why do these groups exist? Did you ever stop and think that maybe
I
> am
> > in a rush? Did you ever stop and think that maybe I am unemployed,
> looking
> > for a job, and can't afford a book? Did you ever stop and think that
> there
> > are kind, intelligent people out there who are willing and happy to just
> > answer questions politely that are asked politely? I guess we can't all
> > have your flare for life!
> >
> > Go spread your cheer in the grumpy user group. (and I'm being nice)
There
> > are nice people out there who are willing to help me out. Some people
> just
> > want/need a little help with certain things. Why did you become a
member
> of
> > this group?
> >
> > Besides, I have a useless Perl book.
> >
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2004-04-01 5:54 Perl Scott@Charter
2004-04-01 5:29 ` Perl tyler
@ 2004-04-05 6:10 ` Nico Schottelius
2004-04-05 6:39 ` Perl Scotts Charter
2004-04-19 19:47 ` Perl Matt Howard
2 siblings, 1 reply; 36+ messages in thread
From: Nico Schottelius @ 2004-04-05 6:10 UTC (permalink / raw)
To: Scott@Charter; +Cc: Linux-Admin-Group
[-- Attachment #1: Type: text/plain, Size: 491 bytes --]
Dear list,
dear Scott,
just to make life easier:
http://www.catb.org/~esr/faqs/smart-questions.html
This link is completly enough for mails of the type Scott wrote.
Eric and Rick did a very good job in telling people how to ask good questions.
Scott: Hopefully you read it and learn from it.
Have a nice day,
Nico
--
Keep it simple & stupid, use what's available.
pgp: 8D0E E27A | Nico Schottelius
http://nerd-hosting.net | http://linux.schottelius.org
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2004-04-05 6:10 ` Perl Nico Schottelius
@ 2004-04-05 6:39 ` Scotts Charter
2004-04-05 13:03 ` Perl Adam Lang
0 siblings, 1 reply; 36+ messages in thread
From: Scotts Charter @ 2004-04-05 6:39 UTC (permalink / raw)
To: Nico Schottelius; +Cc: Linux-Admin-Group
Nico,
Yes, there are people who know how to explain things properly, and with
class. To those of you who noticed I discontinued asking questions several
days ago. To be blind sided, and flamed, like the other guy did, several
days after the question was asked, was completely inappropriate.
I've never seen Bradley Thornton actually ever answer questions but only
flame me. I think that's all he's good for. Then he hides behind a news
group.
Thanks Nico!
-Scott
----- Original Message -----
From: "Nico Schottelius" <nico-linux-admin-ml@schottelius.org>
To: "Scott@Charter" <scott.smallsreed@charter.net>
Cc: "Linux-Admin-Group" <linux-admin@vger.kernel.org>
Sent: Sunday, April 04, 2004 11:10 PM
Subject: Re: Perl
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2004-04-05 6:39 ` Perl Scotts Charter
@ 2004-04-05 13:03 ` Adam Lang
0 siblings, 0 replies; 36+ messages in thread
From: Adam Lang @ 2004-04-05 13:03 UTC (permalink / raw)
Cc: Linux-Admin-Group
I love the smell of napalm in the morning...
----- Original Message -----
From: "Scotts Charter" <scott.smallsreed@charter.net>
To: "Nico Schottelius" <nico-linux-admin-ml@schottelius.org>
Cc: "Linux-Admin-Group" <linux-admin@vger.kernel.org>
Sent: Monday, April 05, 2004 2:39 AM
Subject: Re: Perl
> Nico,
>
> Yes, there are people who know how to explain things properly, and with
> class. To those of you who noticed I discontinued asking questions
several
> days ago. To be blind sided, and flamed, like the other guy did, several
> days after the question was asked, was completely inappropriate.
>
> I've never seen Bradley Thornton actually ever answer questions but only
> flame me. I think that's all he's good for. Then he hides behind a news
> group.
>
> Thanks Nico!
>
> -Scott
>
> ----- Original Message -----
> From: "Nico Schottelius" <nico-linux-admin-ml@schottelius.org>
> To: "Scott@Charter" <scott.smallsreed@charter.net>
> Cc: "Linux-Admin-Group" <linux-admin@vger.kernel.org>
> Sent: Sunday, April 04, 2004 11:10 PM
> Subject: Re: Perl
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2004-04-01 5:54 Perl Scott@Charter
2004-04-01 5:29 ` Perl tyler
2004-04-05 6:10 ` Perl Nico Schottelius
@ 2004-04-19 19:47 ` Matt Howard
2 siblings, 0 replies; 36+ messages in thread
From: Matt Howard @ 2004-04-19 19:47 UTC (permalink / raw)
To: linux-admin
Scott@Charter wrote:
> Can anyone please help me with a short example Perl script that will print
> out all the odd numbers between 1 and 10? I don't know Perl and am trying
> to learn it. I wrote a bash script to do the same thing and wanted to
> compare it.
>
> There must be a Perl expert out there somewhere who can help me?
>
> Thanks-
> Scott
foreach ( 1 .. 10 ) {
print "$_ " if ($_ % 2 == 1);
}
".." is an operator that will return a list that is the range between left
and right. foreach will run the code block for each item of the list,
setting $_ to that item. print ... if does like it sounds, and % is the
modulo operator, in other words, it returns the remainder if the % had been
a /.
I hope this helps you, and I apologize for the unkind responses you have
received from the list here.
If you have any perl questions, you may try http://www.perlmonks.org
--
Matt Howard <mhoward@sigins.com>
Superior Insurance - Technical Services
^ permalink raw reply [flat|nested] 36+ messages in thread
* Perl
@ 2006-11-13 22:56 Lee Revell
2006-11-14 16:28 ` Perl Kim Phillips
` (4 more replies)
0 siblings, 5 replies; 36+ messages in thread
From: Lee Revell @ 2006-11-13 22:56 UTC (permalink / raw)
To: linuxppc-embedded
I've been trying to cross compile Perl for a PPC440 board and it just
isn't happening. Perl is probably the least amenable application to
cross compiling I've found.
I tried the instructions in the Cross/ directory of the Perl distro but
they don't work - "sh Configure" fails on my target because it expects a
full C development environment, which won't fit.
Is there any easy solution? Can someone send me a binary?
Lee
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2006-11-13 22:56 Perl Lee Revell
@ 2006-11-14 16:28 ` Kim Phillips
2006-11-14 16:39 ` Perl Lee Revell
2006-11-14 17:08 ` Perl Wolfgang Grandegger
` (3 subsequent siblings)
4 siblings, 1 reply; 36+ messages in thread
From: Kim Phillips @ 2006-11-14 16:28 UTC (permalink / raw)
To: Lee Revell; +Cc: linuxppc-embedded
On Mon, 13 Nov 2006 17:56:28 -0500
Lee Revell <rlrevell@joe-job.com> wrote:
> I've been trying to cross compile Perl for a PPC440 board and it just
<snip>
> Is there any easy solution? Can someone send me a binary?
>
ltib works for me:
http://savannah.nongnu.org/projects/ltib/
Kim
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2006-11-14 16:28 ` Perl Kim Phillips
@ 2006-11-14 16:39 ` Lee Revell
2006-11-14 16:48 ` Perl Brent Cook
0 siblings, 1 reply; 36+ messages in thread
From: Lee Revell @ 2006-11-14 16:39 UTC (permalink / raw)
To: Kim Phillips; +Cc: linuxppc-embedded
On Tue, 2006-11-14 at 10:28 -0600, Kim Phillips wrote:
> On Mon, 13 Nov 2006 17:56:28 -0500
> Lee Revell <rlrevell@joe-job.com> wrote:
>
> > I've been trying to cross compile Perl for a PPC440 board and it just
> <snip>
> > Is there any easy solution? Can someone send me a binary?
> >
> ltib works for me:
>
> http://savannah.nongnu.org/projects/ltib/
>
How do I build a perl binary with it? I'm not looking to replace my
toolchain or create a full BSP or anything. I just need a /usr/bin/perl
that will run on PPC440.
Lee
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2006-11-14 16:39 ` Perl Lee Revell
@ 2006-11-14 16:48 ` Brent Cook
0 siblings, 0 replies; 36+ messages in thread
From: Brent Cook @ 2006-11-14 16:48 UTC (permalink / raw)
To: linuxppc-dev
On Tuesday 14 November 2006 10:39, Lee Revell wrote:
> On Tue, 2006-11-14 at 10:28 -0600, Kim Phillips wrote:
> > On Mon, 13 Nov 2006 17:56:28 -0500
> >
> > Lee Revell <rlrevell@joe-job.com> wrote:
> > > I've been trying to cross compile Perl for a PPC440 board and it just
> >
> > <snip>
> >
> > > Is there any easy solution? Can someone send me a binary?
> >
> > ltib works for me:
> >
> > http://savannah.nongnu.org/projects/ltib/
>
> How do I build a perl binary with it? I'm not looking to replace my
> toolchain or create a full BSP or anything. I just need a /usr/bin/perl
> that will run on PPC440.
>
> Lee
buildroot, another rootfs framework, doesn't even try to cross-compile all of
perl. It does build something called 'miniperl', which is just the perl
binary without all of the supporting libraries and features. It may be enough
for you. You can look at the makefile here:
http://buildroot.uclibc.org/cgi-bin/viewcvs.cgi/trunk/buildroot/package/microperl/microperl.mk?rev=11418&view=markup
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2006-11-13 22:56 Perl Lee Revell
2006-11-14 16:28 ` Perl Kim Phillips
@ 2006-11-14 17:08 ` Wolfgang Grandegger
2006-11-14 17:42 ` Perl Lee Revell
2006-11-14 18:20 ` Perl Lee Revell
2006-11-14 21:07 ` Perl Wolfgang Denk
` (2 subsequent siblings)
4 siblings, 2 replies; 36+ messages in thread
From: Wolfgang Grandegger @ 2006-11-14 17:08 UTC (permalink / raw)
To: Lee Revell; +Cc: linuxppc-embedded
Lee Revell wrote:
> I've been trying to cross compile Perl for a PPC440 board and it just
> isn't happening. Perl is probably the least amenable application to
> cross compiling I've found.
>
> I tried the instructions in the Cross/ directory of the Perl distro but
> they don't work - "sh Configure" fails on my target because it expects a
> full C development environment, which won't fit.
>
> Is there any easy solution? Can someone send me a binary?
Configure and make perl natively on your target platform. I have done it
some time ago with the ELDK.
Wolfgang.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2006-11-14 17:08 ` Perl Wolfgang Grandegger
@ 2006-11-14 17:42 ` Lee Revell
2006-11-14 21:50 ` Perl Wolfgang Denk
2006-11-14 18:20 ` Perl Lee Revell
1 sibling, 1 reply; 36+ messages in thread
From: Lee Revell @ 2006-11-14 17:42 UTC (permalink / raw)
To: Wolfgang Grandegger; +Cc: linuxppc-embedded
On Tue, 2006-11-14 at 18:08 +0100, Wolfgang Grandegger wrote:
> Lee Revell wrote:
> > I've been trying to cross compile Perl for a PPC440 board and it just
> > isn't happening. Perl is probably the least amenable application to
> > cross compiling I've found.
> >
> > I tried the instructions in the Cross/ directory of the Perl distro but
> > they don't work - "sh Configure" fails on my target because it expects a
> > full C development environment, which won't fit.
> >
> > Is there any easy solution? Can someone send me a binary?
>
> Configure and make perl natively on your target platform. I have done it
> some time ago with the ELDK.
I don't think this is an option, the perl build has too many
dependencies.
Lee
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2006-11-14 17:08 ` Perl Wolfgang Grandegger
2006-11-14 17:42 ` Perl Lee Revell
@ 2006-11-14 18:20 ` Lee Revell
2006-11-15 5:54 ` Perl David H. Lynch Jr.
1 sibling, 1 reply; 36+ messages in thread
From: Lee Revell @ 2006-11-14 18:20 UTC (permalink / raw)
To: Wolfgang Grandegger; +Cc: linuxppc-embedded
On Tue, 2006-11-14 at 18:08 +0100, Wolfgang Grandegger wrote:
> Lee Revell wrote:
> > I've been trying to cross compile Perl for a PPC440 board and it just
> > isn't happening. Perl is probably the least amenable application to
> > cross compiling I've found.
> >
> > I tried the instructions in the Cross/ directory of the Perl distro but
> > they don't work - "sh Configure" fails on my target because it expects a
> > full C development environment, which won't fit.
> >
> > Is there any easy solution? Can someone send me a binary?
>
> Configure and make perl natively on your target platform. I have done it
> some time ago with the ELDK.
>
I've almost got the cross compile method described in INSTALL to work
(using SSH to the target). But it just hangs forever at "Checking how
to flush all pending stdio output...". Argh.
Compiling natively on the target is not an option, the perl build
process has too many dependencies. It depends on stuff fron GNU
coreutils like /bin/comm that is not available in busybox.
Does no one out there have a binary they are willing to send me?
Lee
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2006-11-13 22:56 Perl Lee Revell
2006-11-14 16:28 ` Perl Kim Phillips
2006-11-14 17:08 ` Perl Wolfgang Grandegger
@ 2006-11-14 21:07 ` Wolfgang Denk
2006-11-23 7:26 ` Perl Matthias Fuchs
2006-12-01 15:50 ` Perl Clemens Koller
4 siblings, 0 replies; 36+ messages in thread
From: Wolfgang Denk @ 2006-11-14 21:07 UTC (permalink / raw)
To: Lee Revell; +Cc: linuxppc-embedded
In message <1163458589.5313.71.camel@mindpipe> you wrote:
> I've been trying to cross compile Perl for a PPC440 board and it just
> isn't happening. Perl is probably the least amenable application to
> cross compiling I've found.
Agreed.
> Is there any easy solution? Can someone send me a binary?
Compile natively on the board, using a NFS root environment.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Es ist nicht genug zu wissen, man muß auch anwenden; es ist nicht ge-
nug zu wollen, man muß auch tun. -- Goethe, Maximen und Reflexionen
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2006-11-14 17:42 ` Perl Lee Revell
@ 2006-11-14 21:50 ` Wolfgang Denk
2006-11-20 4:21 ` Perl Leonid
0 siblings, 1 reply; 36+ messages in thread
From: Wolfgang Denk @ 2006-11-14 21:50 UTC (permalink / raw)
To: Lee Revell; +Cc: linuxppc-embedded
In message <1163526178.14674.16.camel@mindpipe> you wrote:
>
> > Configure and make perl natively on your target platform. I have done it
> > some time ago with the ELDK.
>
> I don't think this is an option, the perl build has too many
> dependencies.
I confirm that building Perl on the target system using the ELDK root
file system over NFS works fine.
Just try it out. It may be slow, but CPU cyles are cheap.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
A meeting is an event at which the minutes are kept and the hours are
lost.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2006-11-14 18:20 ` Perl Lee Revell
@ 2006-11-15 5:54 ` David H. Lynch Jr.
0 siblings, 0 replies; 36+ messages in thread
From: David H. Lynch Jr. @ 2006-11-15 5:54 UTC (permalink / raw)
To: Lee Revell; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 2032 bytes --]
Lee Revell wrote:
> On Tue, 2006-11-14 at 18:08 +0100, Wolfgang Grandegger wrote:
>
>> Lee Revell wrote:
>>
>>> I've been trying to cross compile Perl for a PPC440 board and it just
>>> isn't happening. Perl is probably the least amenable application to
>>> cross compiling I've found.
>>>
>>> I tried the instructions in the Cross/ directory of the Perl distro but
>>> they don't work - "sh Configure" fails on my target because it expects a
>>> full C development environment, which won't fit.
>>>
>>> Is there any easy solution? Can someone send me a binary?
>>>
>> Configure and make perl natively on your target platform. I have done it
>> some time ago with the ELDK.
>>
>>
>
> I've almost got the cross compile method described in INSTALL to work
> (using SSH to the target). But it just hangs forever at "Checking how
> to flush all pending stdio output...". Argh.
>
> Compiling natively on the target is not an option, the perl build
> process has too many dependencies. It depends on stuff fron GNU
> coreutils like /bin/comm that is not available in busybox.
>
> Does no one out there have a binary they are willing to send me?
>
> Lee
>
You can also use something like a Mac PowerBook with ppc4xx
crosstools as a build and test environment.
I did most of my early link port work that way, though I now use
crosstools under colinux.
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
--
Dave Lynch DLA Systems
Software Development: Embedded Linux
717.627.3770 dhlii@dlasys.net http://www.dlasys.net
fax: 1.253.369.9244 Cell: 1.717.587.7774
Over 25 years' experience in platforms, languages, and technologies too numerous to list.
"Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction."
Albert Einstein
[-- Attachment #2: Type: text/html, Size: 2975 bytes --]
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
@ 2006-11-15 7:22 Adrian
2006-11-15 16:21 ` Perl Lee Revell
0 siblings, 1 reply; 36+ messages in thread
From: Adrian @ 2006-11-15 7:22 UTC (permalink / raw)
To: Lee Revell; +Cc: linuxppc-embedded
Just found this (notes!) :-
'Perl 5.6.4
Configure with threads, perlio abstraction layer and default libraries.
Copy the etc/Digest directory from perl-5.8.2
Enable MD5 to be statically loaded in perl sh Configure
Also enable threaded'
It was a lot of messing about AFAICR.
Adrian Atkins.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2006-11-15 7:22 Perl Adrian
@ 2006-11-15 16:21 ` Lee Revell
0 siblings, 0 replies; 36+ messages in thread
From: Lee Revell @ 2006-11-15 16:21 UTC (permalink / raw)
To: Adrian; +Cc: linuxppc-embedded
On Wed, 2006-11-15 at 08:22 +0100, Adrian wrote:
> Just found this (notes!) :-
>
> 'Perl 5.6.4
>
> Configure with threads, perlio abstraction layer and default libraries.
>
> Copy the etc/Digest directory from perl-5.8.2
>
> Enable MD5 to be statically loaded in perl sh Configure
>
> Also enable threaded'
>
> It was a lot of messing about AFAICR.
>
> Adrian Atkins.
>
Is this a cross compile or a native build you're describing? If it's a
cross compile do you use the method from Cross/README or INSTALL in the
perl directory?
Lee
^ permalink raw reply [flat|nested] 36+ messages in thread
* RE: Perl
2006-11-14 21:50 ` Perl Wolfgang Denk
@ 2006-11-20 4:21 ` Leonid
2006-11-20 8:34 ` Perl Wolfgang Denk
0 siblings, 1 reply; 36+ messages in thread
From: Leonid @ 2006-11-20 4:21 UTC (permalink / raw)
To: Wolfgang Denk, Lee Revell; +Cc: linuxppc-embedded
On Tuesday, November 14, 2006 1:51 PM Wolfgang Denk wrote:
> I confirm that building Perl on the target system using the ELDK root
> file system over NFS works fine.
> Just try it out. It may be slow, but CPU cyles are cheap.
I've done this successfully with ELDK 4.0 and 3.1.1 on PPC440EP Yosemite
board. Resulting perl binary is working with ELDK ppc_4xx filesystem
(linux 2.6.13 has been used).
However it doesn't run on original Yosemite filesystem (I've copied all
perl files there) - it doesn't find certain glibc symbols. With ELDK 4.0
it's quite understood - it uses glibc 2.3.4, while my filesystem has
glibc 2.3.1. But ELDK 3.1.1 has glibc 2.3.1, yet when I try to run perl,
natively compiled with ELDK 3.1.1 fs on my fs (glibc 2.3.1 as well), it
says:
tmp # /opt/bin/perl warnings.pl
/opt/bin/perl: relocation error: /opt/bin/perl: symbol __floatsidf,
version GLIBC_2.3.2 not defined in file libc.so.6 wie
When I copy libc-2.3.1.so from ELDK filesystem to ours, it fails:
/tmp # /opt/bin/perl warnings.pl
Segmentation fault
=20
Did I something wrong?
Thanks,
Leonid.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2006-11-20 4:21 ` Perl Leonid
@ 2006-11-20 8:34 ` Wolfgang Denk
2006-11-20 14:12 ` Perl Leonid
0 siblings, 1 reply; 36+ messages in thread
From: Wolfgang Denk @ 2006-11-20 8:34 UTC (permalink / raw)
To: Leonid; +Cc: linuxppc-embedded
In message <406A31B117F2734987636D6CCC93EE3C0438F0@ehost011-3.exch011.intermedia.net> you wrote:
>
> I've done this successfully with ELDK 4.0 and 3.1.1 on PPC440EP Yosemite
> board. Resulting perl binary is working with ELDK ppc_4xx filesystem
> (linux 2.6.13 has been used).
>
> However it doesn't run on original Yosemite filesystem (I've copied all
> perl files there) - it doesn't find certain glibc symbols. With ELDK 4.0
What is your "original" filesystem? Any standard distro, or what?
> tmp # /opt/bin/perl warnings.pl
> /opt/bin/perl: relocation error: /opt/bin/perl: symbol __floatsidf,
> version GLIBC_2.3.2 not defined in file libc.so.6 wie
Looks as if you used the ppc_4xx packages for this, which are for
FPU-less 4xx processors. On the yosemite, you should use the
ppc_4xxFP tools instead.
> Did I something wrong?
Yes. You mixed soft-fload and hard-float binaries and libraries.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
A princess should not be afraid -- not with a brave knight to protect
her.
-- McCoy, "Shore Leave", stardate 3025.3
^ permalink raw reply [flat|nested] 36+ messages in thread
* RE: Perl
2006-11-20 8:34 ` Perl Wolfgang Denk
@ 2006-11-20 14:12 ` Leonid
2006-11-20 15:28 ` Perl Leonid
0 siblings, 1 reply; 36+ messages in thread
From: Leonid @ 2006-11-20 14:12 UTC (permalink / raw)
To: wd; +Cc: linuxppc-embedded
On Monday, November 20, 2006 12:35 AM Wolfgang Denk wrote:
> In message <406A31B117F2734987636D6CCC93EE3C0438F0@ehost011-
> 3.exch011.intermedia.net> you wrote:
>
> > I've done this successfully with ELDK 4.0 and 3.1.1 on PPC440EP
Yosemite
> > board. Resulting perl binary is working with ELDK ppc_4xx filesystem
> > (linux 2.6.13 has been used).
> >=20
> > However it doesn't run on original Yosemite filesystem (I've copied
all
> > perl files there) - it doesn't find certain glibc symbols. With ELDK
4.0
> What is your "original" filesystem? Any standard distro, or what?
[Leonid] The one, supplied by AMCC with Yosemite board - came from DENX
originally I believe though I'm not sure.
> > tmp # /opt/bin/perl warnings.pl
> > /opt/bin/perl: relocation error: /opt/bin/perl: symbol __floatsidf,
> > version GLIBC_2.3.2 not defined in file libc.so.6 wie
> Looks as if you used the ppc_4xx packages for this, which are for
> FPU-less 4xx processors. On the yosemite, you should use the
> ppc_4xxFP tools instead.
[Leonid] That must be it! I'll recompile, using ppc_4xxFP target.
Thanks a lot,
Leonid.
^ permalink raw reply [flat|nested] 36+ messages in thread
* RE: Perl
2006-11-20 14:12 ` Perl Leonid
@ 2006-11-20 15:28 ` Leonid
0 siblings, 0 replies; 36+ messages in thread
From: Leonid @ 2006-11-20 15:28 UTC (permalink / raw)
To: wd; +Cc: linuxppc-embedded
On Monday, November 20, 2006 12:35 AM Wolfgang Denk wrote:
> In message <406A31B117F2734987636D6CCC93EE3C0438F0@ehost011-
> 3.exch011.intermedia.net> you wrote:
>
> > I've done this successfully with ELDK 4.0 and 3.1.1 on PPC440EP
Yosemite
> > board. Resulting perl binary is working with ELDK ppc_4xx filesystem
> > (linux 2.6.13 has been used).
> >=20
> > However it doesn't run on original Yosemite filesystem (I've copied
all
> > perl files there) - it doesn't find certain glibc symbols. With ELDK
4.0
> > tmp # /opt/bin/perl warnings.pl
> > /opt/bin/perl: relocation error: /opt/bin/perl: symbol __floatsidf,
> > version GLIBC_2.3.2 not defined in file libc.so.6 wie
> Looks as if you used the ppc_4xx packages for this, which are for
> FPU-less 4xx processors. On the yosemite, you should use the
> ppc_4xxFP tools instead.
[Leonid] Wee, this really was it, now it works!
Thanks a lot again,
Leonid.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2006-11-13 22:56 Perl Lee Revell
` (2 preceding siblings ...)
2006-11-14 21:07 ` Perl Wolfgang Denk
@ 2006-11-23 7:26 ` Matthias Fuchs
2006-11-23 23:00 ` Perl Wolfgang Denk
2006-12-01 15:50 ` Perl Clemens Koller
4 siblings, 1 reply; 36+ messages in thread
From: Matthias Fuchs @ 2006-11-23 7:26 UTC (permalink / raw)
To: linuxppc-embedded
Hi Lee,
there's a quick'n'dirty way to get a perl running on your CPU.
Take the Fedora Core 4 ppc binary rpm (perl-5.8.6-15.ppc.rpm) and install it
from an ELDK 4 root filesystem:
bash-3.00# rpm -ihv --nodeps perl-5.8.6-15.ppc.rpm
warning: perl-5.8.6-15.ppc.rpm: Header V3 DSA signature: NOKEY, key ID
4f2a6fd2
Preparing... ########################################### [100%]
1:perl ########################################### [100%]
bash-3.00# perl -v
This is perl, v5.8.6 built for ppc-linux-thread-multi
Copyright 1987-2004, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
bash-3.00# perl -e 'print "Hello World!\n";'
Hello World!
bash-3.00#
Note: This test has been done on a PPC405. But do not forget to use a kernel
with math emulation for this to work.
Matthias
On Monday 13 November 2006 23:56, Lee Revell wrote:
> I've been trying to cross compile Perl for a PPC440 board and it just
> isn't happening. Perl is probably the least amenable application to
> cross compiling I've found.
>
> I tried the instructions in the Cross/ directory of the Perl distro but
> they don't work - "sh Configure" fails on my target because it expects a
> full C development environment, which won't fit.
>
> Is there any easy solution? Can someone send me a binary?
>
> Lee
>
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2006-11-23 7:26 ` Perl Matthias Fuchs
@ 2006-11-23 23:00 ` Wolfgang Denk
2006-11-24 11:23 ` Perl Matthias Fuchs
0 siblings, 1 reply; 36+ messages in thread
From: Wolfgang Denk @ 2006-11-23 23:00 UTC (permalink / raw)
To: Matthias Fuchs; +Cc: linuxppc-embedded
In message <200611230826.36163.matthias.fuchs@esd-electronics.com> you wrote:
>
> there's a quick'n'dirty way to get a perl running on your CPU.
> Take the Fedora Core 4 ppc binary rpm (perl-5.8.6-15.ppc.rpm) and install it
> from an ELDK 4 root filesystem:
This will only work if you are running on a system where your CPU has
a full-blown CPU, 32 bytes cache line size, and your run-time
environment (all system libraries) are configured to use the FPU.
It will fail on FPU-less or FPU-restricted systems like MPC8xx,
PPC4xx, or MPC85xx.
> Note: This test has been done on a PPC405. But do not forget to use a kernel
> with math emulation for this to work.
I guess you didn't do much testing. You should try some mathematics,
and you might be surprised what happens when your Perl binary uses
the (emulated) FPU, while the system libraries use soft-float.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
It's all Klatchian to me.
- Terry Pratchett & Stephen Briggs, _The Discworld Companion_
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2006-11-23 23:00 ` Perl Wolfgang Denk
@ 2006-11-24 11:23 ` Matthias Fuchs
0 siblings, 0 replies; 36+ messages in thread
From: Matthias Fuchs @ 2006-11-24 11:23 UTC (permalink / raw)
To: Wolfgang Denk; +Cc: linuxppc-embedded
Hi Wolfgang,
I used FC4 ppc binaries for some testing. xlibs, xterm and python where
the first packages I did some tests with. It was just a try to see what
happens.
FPU emulation was the first I needed (of course). Then I switched to the ELDK
ppc_4xxFP root filesystem. This makes it even possible to use perl with math:
bash-3.00# perl -e 'print ("sin(pi/2)=",sin(3.14/2),"\n")'
sin(pi/2)=0.999999682931835
bash-3.00# perl -e 'print ("sqrt(3)=",sqrt(3),"\n")'
sqrt(3)=1.73205080756888
bash-3.00# cat /proc/cpuinfo
processor : 0
cpu : 405GPr
clock : 399MHz
revision : 9.81 (pvr 5091 0951)
bogomips : 495.61
machine : esd CPCI-405
plb bus clock : 133MHz
pci bus clock : 33MHz
bash-3.00#
I would not recommend to use this for production. But its a good starting
point before turning on the compiler :-)
Matthias
On Friday 24 November 2006 00:00, Wolfgang Denk wrote:
> In message <200611230826.36163.matthias.fuchs@esd-electronics.com> you
wrote:
> >
> > there's a quick'n'dirty way to get a perl running on your CPU.
> > Take the Fedora Core 4 ppc binary rpm (perl-5.8.6-15.ppc.rpm) and install
it
> > from an ELDK 4 root filesystem:
>
> This will only work if you are running on a system where your CPU has
> a full-blown CPU, 32 bytes cache line size, and your run-time
> environment (all system libraries) are configured to use the FPU.
>
> It will fail on FPU-less or FPU-restricted systems like MPC8xx,
> PPC4xx, or MPC85xx.
>
> > Note: This test has been done on a PPC405. But do not forget to use a
kernel
> > with math emulation for this to work.
>
> I guess you didn't do much testing. You should try some mathematics,
> and you might be surprised what happens when your Perl binary uses
> the (emulated) FPU, while the system libraries use soft-float.
>
> Best regards,
>
> Wolfgang Denk
>
> --
> Software Engineering: Embedded and Realtime Systems, Embedded Linux
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
> It's all Klatchian to me.
> - Terry Pratchett & Stephen Briggs, _The Discworld Companion_
>
>
--
-----------------------------------------------------------------------
Dipl.-Ing. Matthias Fuchs esd electronic system design gmbh
http://www.esd-electronics.com Vahrenwalder Str. 207
phone: +49-511-37298-0, fax: -68 30165 Hannover, Germany
-----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: Perl
2006-11-13 22:56 Perl Lee Revell
` (3 preceding siblings ...)
2006-11-23 7:26 ` Perl Matthias Fuchs
@ 2006-12-01 15:50 ` Clemens Koller
4 siblings, 0 replies; 36+ messages in thread
From: Clemens Koller @ 2006-12-01 15:50 UTC (permalink / raw)
To: Lee Revell; +Cc: linuxppc-embedded
Hello, Lee!
Lee Revell schrieb:
> I've been trying to cross compile Perl for a PPC440 board and it just
> isn't happening. Perl is probably the least amenable application to
> cross compiling I've found.
>
> I tried the instructions in the Cross/ directory of the Perl distro but
> they don't work - "sh Configure" fails on my target because it expects a
> full C development environment, which won't fit.
>
> Is there any easy solution? Can someone send me a binary?
I don't know much about the ppc440 and it's core. But maybe you
can use mine?!
I am using perl successfully on a MPC8540 CPU which has an e500
core w/o an FPU. I don't need to cross compile and it comes with
only the necessary dependencies:
$ prt-get deptree perl
-- dependencies ([i] = installed, '-->' = seen before)
[i] perl
[i] db
[i] gdbm
all that on top of glibc-2.3.4
If you want to try those three tar.gz's please contact me off list
and I can send it to you.
It's also possible to recompile that stuff to a different ppc target...
Greets,
Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany
http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19
^ permalink raw reply [flat|nested] 36+ messages in thread
end of thread, other threads:[~2006-12-01 15:50 UTC | newest]
Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-15 7:22 Perl Adrian
2006-11-15 16:21 ` Perl Lee Revell
-- strict thread matches above, loose matches on Subject: below --
2006-11-13 22:56 Perl Lee Revell
2006-11-14 16:28 ` Perl Kim Phillips
2006-11-14 16:39 ` Perl Lee Revell
2006-11-14 16:48 ` Perl Brent Cook
2006-11-14 17:08 ` Perl Wolfgang Grandegger
2006-11-14 17:42 ` Perl Lee Revell
2006-11-14 21:50 ` Perl Wolfgang Denk
2006-11-20 4:21 ` Perl Leonid
2006-11-20 8:34 ` Perl Wolfgang Denk
2006-11-20 14:12 ` Perl Leonid
2006-11-20 15:28 ` Perl Leonid
2006-11-14 18:20 ` Perl Lee Revell
2006-11-15 5:54 ` Perl David H. Lynch Jr.
2006-11-14 21:07 ` Perl Wolfgang Denk
2006-11-23 7:26 ` Perl Matthias Fuchs
2006-11-23 23:00 ` Perl Wolfgang Denk
2006-11-24 11:23 ` Perl Matthias Fuchs
2006-12-01 15:50 ` Perl Clemens Koller
2004-04-01 5:54 Perl Scott@Charter
2004-04-01 5:29 ` Perl tyler
2004-04-01 6:54 ` Perl Scott@Charter
2004-04-01 7:25 ` Perl Richard Nairn
2004-04-01 8:20 ` Perl Dan Kubilos
2004-04-01 14:51 ` Perl Adam Lang
2004-04-01 18:48 ` Perl Bradley Hook
2004-04-05 2:30 ` Perl Bradley D. Thornton
2004-04-05 5:09 ` Perl Bradley D. Thornton
2004-04-05 6:10 ` Perl Nico Schottelius
2004-04-05 6:39 ` Perl Scotts Charter
2004-04-05 13:03 ` Perl Adam Lang
2004-04-19 19:47 ` Perl Matt Howard
2002-12-04 19:24 Perl Alan Womack
2002-12-04 15:48 Perl Paul Kraus
2002-12-05 6:56 ` Perl ichi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.