On Wed, Sep 18, 2013 at 10:02 AM, Alexander Karner <a...@de.ibm.com> wrote:

> Hi!
> While I'm not a beginner with Perl it seems that I'm somewhat a beginner
> if it comes to compilation:
>
> I try to compile 5.18.0 on my RHEL 6.4 system. Primarily in order to be
> able to use Padre.
> This is the command to create the configuration:
>

Wow, those are a *lot* of options! Are you sure you need all of those? perl
generally handles most of that itself, and passing stuff like -m64 and
-pthreads manually tends to break Configure's detection of some features.


>
> sh Configure -de \
> -Doptimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' \
> -Accflags='-DPERL_USE_SAFE_PUTENV -I/usr/include/gdbm -pthread' \
> -Aappend:libswanted='-l resolv' \
> -Dversion=5.18.0 \
> -Dmyhostname=localhost \
> -Dperladmin=a...@my.domain.com \
> -Dcc=gcc \
> -Dcf_by='Alex' \
> -Dprefix=$HOME/soft/perl/5.18.0 \
> -Darchname=x86_64-linux-thread-multi \
> -Dlibpth='/usr/local/lib64 /lib64 /usr/lib64' \
> -Duseshrplib \
> -Dusethreads \
> -Duseithreads \
> -Duselargefiles \
> -Dd_semctl_semun \
> -Di_db \
> -Ui_ndbm \
> -Di_gdbm \
> -Di_shadow \
> -Di_syslog \
> -Dman3ext=3pm \
> -Duseperlio \
> -Dinstallusrbinperl=n \
> -Ubincompat5005 \
> -Uversiononly \
> -Dpager='/usr/bin/less -isr' \
> -Dd_gethostent_r_proto \
> -Ud_endhostent_r_proto \
> -Ud_sethostent_r_proto \
> -Ud_endprotoent_r_proto \
> -Ud_setprotoent_r_proto \
> -Ud_endservent_r_proto \
> -Ud_setservent_r_proto \
> -Dinc_version_list=none
>
> However if I take a look at perl -V after successfull compilation I see:
> Platform:
>     osname=linux, osvers=2.6.32-358.6.1.el6.x86_64, archname=x86_64-linux
>     uname='linux oc7857520232.ibm.com 2.6.32-358.6.1.el6.x86_64 #1 smp
> fri mar 29 16:51:51 edt 2013 x86_64 x86_64 x86_64 gnulinux '
>     config_args='-des -Doptimize=-O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic
> -Accflags=-DPERL_USE_SAFE_PUTENV -I/usr/include/gdbm -Aappend:libswanted=-l
> resolv -Dversion=5.18.0 -Dmyhostname=localhost -Dperladmin=aka at
> de.ibm.com -Dcc=gcc -Dcf_by=Alex -Dprefix=/home/akarner/soft/perl/5.18.0
> -Darchname=x86_64-linux-thread-multi -Dlibpth=/usr/local/lib64 /lib64
> /usr/lib64 -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles
> -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog
> -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005
> -Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto
> -Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto
> -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto
> -Dinc_version_list=none'
>     hint=recommended, useposix=true, d_sigaction=define
>     useithreads=undef, usemultiplicity=undef
>  <----------------------
>     useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
>     use64bitint=define, use64bitall=define, uselongdouble=undef
>     usemymalloc=n, bincompat5005=undef
>
> --> useithreads is still undef
>
> And if I try to install Padre I receive a message that it requires a
> threaded version of Perl.
>
> --> Is this normal or do I miss something special at this point?
>

That is not normal, but I can't spot you having missed anything obvious.
Try creating a perl with just

sh Configure -des -Dusethreads

and see if that works. If it doesn't, well, something is awfully wrong with
your system! If it does, start piling up options until you find out what
breaks it, and then file a bug against perl itself sot hat no one else has
to stumble against this in the future :D
Also, you might want to use perlbrew to do all of this.

Reply via email to