Ports make requires Perl 5.24.2 [SOLVED ???]

Installing and maintaining software with the FreeBSD Ports Collection.
Post Reply
hmoessle
Posts: 3
Joined: Tue Jul 25, 2017 2:30 pm
Has thanked: 0
Been thanked: 0

Ports make requires Perl 5.24.2 [SOLVED ???]

Post by hmoessle » Tue Jul 25, 2017 2:35 pm

Hello

I'm a new to BSD coming from Ubuntu and just installed GhostBSD. Now I tried to install some software to 10.3 using ports. Some worked smooth, but with others I got nasty errors regarding missing Perl 5.24.2. I checked that 5.24.1 is installed an d I can't find a package newer than that. How to persuade ports system to use 5.24.1 ?

Thanks a lot in advance and greetings from Bonn (Germany)

Hans

[SOLVED ???]

well, found a workaround, I generate a link in /usr/local/bin from perl to perl5.24.2

root@pinot:/usr/local/bin # ln perl perl5.24.2
root@pinot:/usr/local/bin #

root@pinot:/usr/local/bin # ls -lisa perl*
301367 9 -rwxr-xr-x 4 root wheel 7568 13 Jul 03:15 perl
301367 9 -rwxr-xr-x 4 root wheel 7568 13 Jul 03:15 perl5
301367 9 -rwxr-xr-x 4 root wheel 7568 13 Jul 03:15 perl5.24.1
301367 9 -rwxr-xr-x 4 root wheel 7568 13 Jul 03:15 perl5.24.2
301368 25 -rwxr-xr-x 2 root wheel 45405 13 Jul 03:14 perlbug
301369 5 -rwxr-xr-x 1 root wheel 274 13 Jul 03:14 perldoc
301370 9 -rwxr-xr-x 1 root wheel 10829 13 Jul 03:14 perlivp
301368 25 -rwxr-xr-x 2 root wheel 45405 13 Jul 03:14 perlthanks
root@pinot:/usr/local/bin #

but is this a solution? I don't think so and hope someone have a better idea

Greetings Hans

ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm
Has thanked: 0
Been thanked: 0

Re: Ports make requires Perl 5.24.2 [SOLVED ???]

Post by ASX » Tue Jul 25, 2017 3:32 pm

Hello and welcome!

Take a bit of time before using ports, and understand how pkg works.

Most important things are:
FreeBSD provide two pkg repositories, "quarterly" and "latest", the default is "quarterly", and this is also the default in GhostBSD 10.3.
ports usually refer to the head branch of the ports tree, which is more or less in sync with "latest" pkg repository.
Very likely you are now mixing pkgs from "quarterly" and ports from "head branch" and that most likely is the source of your issue.

~~~

Moreover, GhostBSD is now working with own repositories, built from head branch, thus close to FreeBSD "latest", we are in the mid of a switch and the upcoming GhostBSD 11.1 will make use of our own repos. Previously we were using FreeBSD repos.

~~~

Building from source is not the simplest thing, and there are several ways to build from ports tree: we strongly advice to use ports-mgmt/synth, a magnificient tool for building pkgs (and full repos too).

Stay absoluttely away from things like portmaster and portupgrade if you want to avoid troubles.

Look around on our forums, there are a few threads about switching to use our own repos ;)
viewtopic.php?f=69&t=715

Have fun!

hmoessle
Posts: 3
Joined: Tue Jul 25, 2017 2:30 pm
Has thanked: 0
Been thanked: 0

Re: Ports make requires Perl 5.24.2 [SOLVED ???]

Post by hmoessle » Tue Jul 25, 2017 3:57 pm

Hi

thanks for the quick response

Yes, perhaps a mix of repositories, but how? I installed just out of the box, upgrade to latest via OctoPkg, initialised ports by portsnap fetch and portsnap extract and tried to install (in this case "audicity"). I didn't play with repository definitions (will have a look on the mentioned link ;-) when the installation of audacity is finished).

Anyway, there was a workaround and thanks again for your quick help

Greetings Hans

ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm
Has thanked: 0
Been thanked: 0

Re: Ports make requires Perl 5.24.2 [SOLVED ???]

Post by ASX » Tue Jul 25, 2017 4:09 pm

hmoessle wrote:Yes, perhaps a mix of repositories, but how? I installed just out of the box, upgrade to latest via OctoPkg, initialised ports by portsnap fetch and portsnap extract and tried to install (in this case "audicity").
upgrade via octopkg was using "quarterly" repo
portsnap fetch extract, extract the head branch, they are exactly out of sync!
I didn't play with repository definitions
The problem lie in the default repo (quarterly instead of latest) and on the widely documented belief that it is safe to use "portsnap fetch extract", and it is not the case.

The fix, in your case can be:
a) build all pkgs from ports, eventually do that using synth
b) upgrade your repo config to make use of our own repos (previous link) and reinstall ALL packages.

audacity is available in GhostBSD repos, do you need special settings ? please let us know about.

ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm
Has thanked: 0
Been thanked: 0

Re: Ports make requires Perl 5.24.2 [SOLVED ???]

Post by ASX » Tue Jul 25, 2017 4:12 pm

btw, if you use IRC, you can join #ghostbsd on Freenode ;)

hmoessle
Posts: 3
Joined: Tue Jul 25, 2017 2:30 pm
Has thanked: 0
Been thanked: 0

Re: Ports make requires Perl 5.24.2 [SOLVED ???]

Post by hmoessle » Tue Jul 25, 2017 4:19 pm

puhhh, sounds like a night shift ;-)

I'll try suggestion b) , but not now (install of tex is taking some time) and will post the results

Thanks and bye

Hans

ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm
Has thanked: 0
Been thanked: 0

Re: Ports make requires Perl 5.24.2 [SOLVED ???]

Post by ASX » Tue Jul 25, 2017 4:41 pm

hmoessle wrote:puhhh, sounds like a night shift ;-)
Yeah, usually it is. :mrgreen:

Symons
Posts: 1
Joined: Tue Nov 14, 2017 5:17 am
Has thanked: 0
Been thanked: 0

Re: Ports make requires Perl 5.24.2 [SOLVED ???]

Post by Symons » Thu Nov 16, 2017 6:57 am

hmoessle wrote:puhhh, sounds like a night shift ;-)

I'll try suggestion b) , but not now (install of tex is taking some time) and will post the results

Thanks and bye

Hans
Hey Hans did upgrade your repo config and using your own repos work out for you?

Post Reply