LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-31-2013, 12:07 PM   #1
bhussein
LQ Newbie
 
Registered: Sep 2013
Posts: 25

Rep: Reputation: Disabled
Perl 5.8 on Debian 7 Wheezy


Dear All,

has anyone managed to get Perl 5.8 installed on Debian 7 Wheezy? if yes can you please share the how to as i've been struggling to get it to work.

Thanks,
Badar
 
Old 10-31-2013, 12:18 PM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Isn't that a bit on the old side?
 
Old 10-31-2013, 12:20 PM   #3
bhussein
LQ Newbie
 
Registered: Sep 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by widget View Post
Isn't that a bit on the old side?
yes, unfortunately the stuff i work with only work with the old version of Perl ... so need to get that working on debian 7.
 
Old 10-31-2013, 03:35 PM   #4
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Well that sounds strange but what exactly is the problem you are having?

What specific error messages are you getting?

Where did you get the package?

How did you install or attempt to install the package?

I should say that I know little about perl so hopefully someone else will jump in. The above questions are standard questions that need answers so that meaningful help can be given.

Some information on your hardware would be nice to have too but probably not crucial in this case.
 
Old 10-31-2013, 03:59 PM   #5
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by http://dev.perl.org/
Perl 5.8.0 Has Been Released

The Perl 5 developer team is proud to announce the Perl Release 5.8.0.
This announcement is available online as

http://dev.perl.org/perl5/news/2002/07/18/580ann/

and also in some Eastern Asian versions (see below).

Perl 5.8.0 is a major new release of the Perl 5 language.
It incorporates all development and maintenance changes since the last
major release, 5.6.0, including all the changes of the maintenance
release, 5.6.1.
Wow, good luck. Might be easier to re-work the code.
 
Old 11-01-2013, 05:36 AM   #6
bhussein
LQ Newbie
 
Registered: Sep 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
Thanks Andrew for the link i've managed to wget and configure, but when i compile /make I get the error messages below

make
cc -L/usr/local/lib -o miniperl \
miniperlmain.o opmini.o libperl.a
libperl.a(pp.o): In function `Perl_pp_pow':
pp.c.text+0x29b7): undefined reference to `pow'
libperl.a(pp.o): In function `Perl_pp_modulo':
pp.c.text+0x3519): undefined reference to `floor'
pp.c.text+0x354f): undefined reference to `floor'
pp.c.text+0x3960): undefined reference to `fmod'
libperl.a(pp.o): In function `Perl_pp_atan2':
pp.c.text+0x864d): undefined reference to `atan2'


Is this because the new version of debian/ubunutu libraries are OLD can you help to either downgrade the libraries or get this to work.
 
Old 11-01-2013, 05:36 AM   #7
bhussein
LQ Newbie
 
Registered: Sep 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
and more

libperl.a(pp.o): In function `Perl_pp_sin':
pp.c.text+0x8753): undefined reference to `sin'
libperl.a(pp.o): In function `Perl_pp_cos':
pp.c.text+0x8893): undefined reference to `cos'
libperl.a(pp.o): In function `Perl_pp_exp':
pp.c.text+0x8b93): undefined reference to `exp'
libperl.a(pp.o): In function `Perl_pp_log':
pp.c.text+0x8cdd): undefined reference to `log'
 
Old 11-01-2013, 05:55 AM   #8
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
You would be best served by running this either in VirtualBox or a chroot.

Last edited by andrewthomas; 11-01-2013 at 05:58 AM.
 
Old 11-01-2013, 06:29 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 6 .

What's the purpose of 'miniperl' ? ?

http://www.perlmonks.org/bare/?node_id=377735 >
Quote:
The only difference between miniperl and perl is that miniperl
cannot load XS-based perl modules as shared objects
(that is, it doesn't support DynaLoader).
 
Old 11-01-2013, 06:40 AM   #10
bhussein
LQ Newbie
 
Registered: Sep 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by andrewthomas View Post
You would be best served by running this either in VirtualBox or a chroot.
I dont understand? the problem is with compiling the perl 5.8 i downloaded from the net? why shall i run it in vbox?
 
Old 11-01-2013, 06:43 AM   #11
bhussein
LQ Newbie
 
Registered: Sep 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 6 .

What's the purpose of 'miniperl' ? ?

http://www.perlmonks.org/bare/?node_id=377735 >
but its perl 5.9 right?
 
Old 11-01-2013, 06:48 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ref. post # 6.

Why do you want "miniperl" ?

It's just a 10 year old limited version of Perl.
 
Old 11-01-2013, 06:49 AM   #13
bhussein
LQ Newbie
 
Registered: Sep 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Ref. post # 6.

Why do you want "miniperl" ?

It's just a 10 year old limited version of Perl.
and how can I download this on a newer version of Debian?

thank you
 
Old 11-01-2013, 07:44 AM   #14
bhussein
LQ Newbie
 
Registered: Sep 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
When I try to compile perl5.8 on my debian/ubuntu i get

What is the file extension used for shared libraries? [so]

Checking for optional libraries...
No -lsfio.
No -lsocket.
No -lbind.
No -linet.
No -lnsl.
No -lnm.
No -lndbm.
No -lgdbm.
No -ldbm.
No -ldb.
No -lmalloc.
No -ldl.
No -ldld.
No -lld.
No -lsun.
No -lm.
No -lc.
No -lcposix.
No -lposix.
No -lndir.
No -ldir.
No -lcrypt.
No -lsec.
No -lucb.
No -lBSD.
No -lPW.
No -lx.
No -lutil.

In order to compile perl5 on your machine, a number of libraries
are usually needed. Include any other special libraries here as well.
Say "none" for none. The default list is almost always right.
 
Old 11-01-2013, 10:42 AM   #15
bhussein
LQ Newbie
 
Registered: Sep 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
Run make depend now? [y]
sh ./makedepend MAKE=make
make[1]: Entering directory `/home/*****/perl-5.6.2'
sh writemain lib/auto/DynaLoader/DynaLoader.a lib/auto/B/B.a lib/auto/ByteLoader/ByteLoader.a lib/auto/Data/Dumper/Dumper.a lib/auto/Devel/DProf/DProf.a lib/auto/Devel/Peek/Peek.a lib/auto/Fcntl/Fcntl.a lib/auto/File/Glob/Glob.a lib/auto/IO/IO.a lib/auto/IPC/SysV/SysV.a lib/auto/Opcode/Opcode.a lib/auto/POSIX/POSIX.a lib/auto/SDBM_File/SDBM_File.a lib/auto/Socket/Socket.a lib/auto/Sys/Hostname/Hostname.a lib/auto/Sys/Syslog/Syslog.a lib/auto/attrs/attrs.a lib/auto/re/re.a > writemain.tmp
sh mv-if-diff writemain.tmp perlmain.c
echo av.c scope.c op.c doop.c doio.c dump.c hv.c mg.c perl.c perly.c pp.c pp_hot.c pp_ctl.c pp_sys.c regcomp.c regexec.c utf8.c gv.c sv.c taint.c toke.c util.c deb.c run.c universal.c xsutils.c globals.c perlio.c perlapi.c miniperlmain.c perlmain.c | tr ' ' '\n' >.clist
make[1]: Leaving directory `/home/*****/perl-5.6.2'
./makedepend: 1: ./makedepend: Syntax error: Unterminated quoted string
make: *** [depend] Error 2

If you compile perl5 on a different machine or from a different object
directory, copy the Policy.sh file from this object directory to the
new one before you run Configure -- this will help you with most of
the policy defaults.
 
  


Reply



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
LXer: Debian Linux vs. Debian kFreeBSD With Squeeze & Wheezy LXer Syndicated Linux News 0 12-12-2012 10:00 PM
Perl: CPAN modules under Debian (Wheezy) not installing properly. systemlordanubis Programming 1 09-23-2012 06:41 PM
[SOLVED] Newly installed debian sid & saved debian wheezy home would like to transfer files EDDY1 Linux - Newbie 11 01-20-2012 07:43 PM
LXer: Debian to offer MultiArch support with Debian Wheezy 7 in 2013 LXer Syndicated Linux News 0 08-11-2011 01:50 AM
LXer: Debian looking at a June 2012 freeze for Debian Wheezy LXer Syndicated Linux News 0 08-10-2011 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:26 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration