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

Notices


Reply
  Search this Thread
Old 01-08-2024, 10:27 AM   #1
fuzero
LQ Newbie
 
Registered: Jan 2018
Location: Milan,Italy
Distribution: Slackware
Posts: 3

Rep: Reputation: Disabled
slackbuild perl compiling


Hi,

I'm trying to compile using sbopkg perl-Pod-Parser and have this error:
Code:
Only one of PREFIX or INSTALL_BASE can be given.  Not both.
No problem with : perl-Archive-Extract and perl-Module-Build

Here is my Perl configuration:

Code:
[root@viper ~]# perl -V
Summary of my perl5 (revision 5 version 34 subversion 0) configuration:
   
  Platform:
    osname=linux
    osvers=5.18.14
    archname=x86_64-linux-thread-multi
    uname='linux z-mp.slackware.lan 5.18.14 #1 smp preempt_dynamic sun jul 24 12:38:27 cdt 2022 x86_64 intel(r) core(tm) i7-9850h cpu @ 2.60ghz genuineintel gnulinux '
    config_args='-de -Dprefix=/usr -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib64/perl5 -Darchlib=/usr/lib64/perl5 -Dvendorprefix=/usr -Dprivlib=/usr/share/perl5 -Dvendorlib=/usr/share/perl5/vendor_perl -Dvendorarch=/usr/lib64/perl5/vendor_perl -Dscriptdir=/usr/bin -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dlibpth=/usr/local/lib64 /usr/lib64 /lib64 -Doptimize=-O2 -fPIC -Dusethreads -Duseithreads -Duseshrplib -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr -Darchname=x86_64-linux'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
  Compiler:
    cc='cc'
    ccflags ='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2'
    optimize='-O2 -fPIC'
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
    ccversion=''
    gccversion='11.2.0'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib64 /usr/lib64 /lib64 /usr/local/lib /usr/lib /lib
    libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.33.so
    so=so
    useshrplib=true
    libperl=libperl.so
    gnulibc_version='2.33'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib64/perl5/CORE'
    cccdlflags='-fPIC'
    lddlflags='-shared -O2 -fPIC -L/usr/local/lib -fstack-protector-strong'


Characteristics of this binary (from libperl): 
  Compile-time options:
    HAS_TIMES
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_IMPLICIT_CONTEXT
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
    USE_REENTRANT_API
    USE_THREAD_SAFE_LOCALE
  Built under linux
  Compiled at Jul 25 2022 13:00:56
  %ENV:
    PERL5LIB="/root/perl5/lib/perl5"
    PERL_LOCAL_LIB_ROOT="/root/perl5"
    PERL_MB_OPT="--install_base "/root/perl5""
    PERL_MM_OPT="INSTALL_BASE=/root/perl5"
  @INC:
    /root/perl5/lib/perl5/5.34.0/x86_64-linux-thread-multi
    /root/perl5/lib/perl5/5.34.0
    /root/perl5/lib/perl5/x86_64-linux-thread-multi
    /root/perl5/lib/perl5
    /usr/local/lib64/perl5
    /usr/local/share/perl5
    /usr/lib64/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/lib64/perl5
    /usr/share/perl5
Nothing found on net.
Thanks in advance to anyone.
 
Old 01-08-2024, 10:51 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,146

Rep: Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212
Hi fuzero, welcome to LQ!

that seems to happen because you seem to have installed custom perl modules and binaries in a custom PATH: as your "perl -V" output states you have these variables in your environment
Code:
  %ENV:
    PERL5LIB="/root/perl5/lib/perl5"
    PERL_LOCAL_LIB_ROOT="/root/perl5"
    PERL_MB_OPT="--install_base "/root/perl5""
    PERL_MM_OPT="INSTALL_BASE=/root/perl5"
  @INC:
    /root/perl5/lib/perl5/5.34.0/x86_64-linux-thread-multi
    /root/perl5/lib/perl5/5.34.0
    /root/perl5/lib/perl5/x86_64-linux-thread-multi
    /root/perl5/lib/perl5
that I don't have in a standard perl installation.

those environment variables conflict with what is specified in the perl-Pod-Parser Slackbuild
Code:
perl Makefile.PL \
  PREFIX=/usr \
  INSTALLDIRS=vendor \
  INSTALLVENDORMAN3DIR=/usr/man/man3

make
make test
make install DESTDIR=$PKG
as there the PREFIX=/usr parameter is specified too.
perl-Archive-Extract.SlackBuild works because it doesn't use PREFIX, and perl-Module-Build.SlackBuild works because it overwrites some of your environment variables (but in the end doesn't respect your custom perl stuff preferences).

for your issue I suggest you either to install everything perl-* you need via SlackBuilds.org (the best solution, to have tracking also of the installed stuff) or, depending also by the availability of what you need, to manage everything perl-* you need without SlackBuild packages in your custom location, but not both or it will result in a mess.
if you choose the first way you will have to add the missing stuff writing yourself dedicated SlackBuilds.

Last edited by ponce; 01-08-2024 at 10:55 AM.
 
1 members found this post helpful.
Old 01-08-2024, 11:15 AM   #3
fuzero
LQ Newbie
 
Registered: Jan 2018
Location: Milan,Italy
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks @Ponce,

I don't remember any modules installed using cpan, can you suggest how to clean all perl modules.
So I can install using slackbuild only that I need.

Thanks
 
Old 01-08-2024, 11:21 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,146

Rep: Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212Reputation: 4212
Quote:
Originally Posted by fuzero View Post
Thanks @Ponce,

I don't remember any modules installed using cpan, can you suggest how to clean all perl modules.
So I can install using slackbuild only that I need.

Thanks
if you haven't installed anything via CPAN maybe removing/commenting-out those environment variables (and logging in again) could be enough, but only you could know where they are specified (~/.bashrc, ~/.bash_profile, ~/.profile, /etc/profile or whatever else)...
you can verify they aren't in use anymore checking again with "perl -V".

Last edited by ponce; 01-08-2024 at 11:28 AM.
 
Old 01-08-2024, 11:55 AM   #5
fuzero
LQ Newbie
 
Registered: Jan 2018
Location: Milan,Italy
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: Disabled
perfect,
with no ENV (environment variables) it works.

Thanks Ponce

Last edited by fuzero; 01-08-2024 at 12:26 PM.
 
  


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: Plain Old Documentation (pod) – write documentation for Perl, Perl software, and Perl modules LXer Syndicated Linux News 0 10-05-2018 09:12 AM
[SOLVED] sbopkg installs "original" SlackBuild to /usr/doc/<pkg>/ instead of "local" SlackBuild drumz Slackware 29 01-20-2018 12:12 AM
[SOLVED] SlackBuild perl-AnyEvent fails to install. Invarianz Slackware 13 06-13-2015 06:44 PM
[Patch and SlackBuild] Grub-2.02~beta2 SlackBuild and Patch. ReaperX7 Slackware 3 01-28-2015 09:30 AM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM

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

All times are GMT -5. The time now is 04:29 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