LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 12-11-2011, 07:23 PM   #1
rivercat
LQ Newbie
 
Registered: Aug 2010
Location: USA
Distribution: Slackware 13
Posts: 16

Rep: Reputation: 0
Question Is Perl absolutely necessary to compile the kernel?


I was hoping it was only used for a test suite, "make check", or another optional step.

I heard that perl had an absolutely crappy syntax, and would prefer to avoid it.
 
Old 12-11-2011, 08:06 PM   #2
davemguru
Member
 
Registered: Apr 2006
Location: London
Distribution: Pclos,Debian,Puppy,Fedora
Posts: 87

Rep: Reputation: 40
short answer - no.
"gcc" and make are used.

There are a bunch of "make utilities" things like "autoconf" and others. But, whenever you find some software that you need to compile - it should have a README in it that will tell you about the tools required to make/build/compile it.

Dave
 
Old 12-11-2011, 09:09 PM   #3
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by rivercat View Post
I heard that perl had an absolutely crappy syntax, and would prefer to avoid it.
Decide for yourself. Can you guess what this does?

Code:
perl -pae '{%s=();$_=join " ",(grep{!$s{$_}++}@F)."\n"}' input_file
No?
http://www.linuxquestions.org/questi...4/#post4545233

Sorry for being OT
 
Old 12-11-2011, 09:51 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,264

Rep: Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027
This must rank amongst the most bizarre threads (in this forum - there are plenty more in General) ...
 
Old 12-12-2011, 09:06 AM   #5
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,377

Rep: Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108
... and completely off-topic. "When in Rome, do as the Romans do." You want "to build a Linux kernel (from this-or-that distro)," i.e. this is not http://www.linuxfromscratch.org, and so your true objective is: get 'er done. Watch the friendly neighborhood Centurions as they walk by, and try to imitate them. (Watch out for those swords... they're sharp.)
 
Old 12-13-2011, 06:45 PM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Quote:
Originally Posted by rivercat View Post
I heard that perl had an absolutely crappy syntax, and would prefer to avoid it.
To be clear, it may require a Perl interpreter to build a kernel, and I've built lots of kernels but never written a single line of Perl code to do so. Whether the tools are written in Perl, C, C++ or Pascal shouldn't matter as long as they end up generating a functional kernel and related bits. I really have no idea what all of the kernel building tools are created with, and I don't see why anyone would care.

--- rod.
 
Old 12-13-2011, 07:12 PM   #7
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Quote:
Originally Posted by Telengard View Post
Decide for yourself. Can you guess what this does?

Code:
perl -pae '{%s=();$_=join " ",(grep{!$s{$_}++}@F)."\n"}' input_file
No?
http://www.linuxquestions.org/questi...4/#post4545233

Sorry for being OT
It is not that difficult, it is mainly a perl grep function trick
(perldoc -f grep). It makes an array for each key of %s hash (from @F which is array of input fields created by -a option) which has zero value (!$s{$_})
 
  


Reply

Tags
kernel, perl


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to install Madwifi Driver, asking me to configure Kernel, absolutely lost, ETRadix Linux - Newbie 3 01-07-2009 07:54 PM
Trying to install Madwifi Driver, asking me to configure Kernel, absolutely lost, ETRadix Linux - Hardware 2 01-07-2009 07:17 PM
Cannot compile perl - 'G not found'? nukeu666 Linux - Software 1 09-11-2008 09:50 PM
Help Compile perl with threads sendas Linux - Newbie 1 12-24-2006 07:34 AM
Compile Perl into executable Xyem Linux - General 8 12-05-2005 05:00 PM


All times are GMT -5. The time now is 11:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration