Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2017 20:55:03 +1030
From:      Shane Ambler <FreeBSD@ShaneWare.Biz>
To:        Joseph Olatt <joji@centos6.eskimo.com>, Bernt Hansson <bah@bananmonarki.se>
Cc:        trasz@FreeBSD.org, "freebsd-questions@freebsd.org" <freebsd-questions@FreeBSD.org>
Subject:   Re: Need help with python
Message-ID:  <5b4df615-153a-f22a-d940-bb038cb5dc78@ShaneWare.Biz>
In-Reply-To: <20170128162858.GA5721@centos6.eskimo.com>
References:  <d232b911-1236-4c8a-9d2a-cdd55f17a696@bananmonarki.se> <20170128162858.GA5721@centos6.eskimo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 29/01/2017 02:58, Joseph Olatt wrote:
> On Thu, Jan 26, 2017 at 07:57:20PM +0100, Bernt Hansson wrote:
>> Hello list!
>>
>> I'm trying to run this program http://flatcam.org/ it's made in python.
>>
>> Got this same error whith py-pycam before it became a port.
>> So what did the maintainer do with pycam.
>>
>> Pycam maintainer cc.
>>
>> This error is from flatcam, last line was the same with pycam.

>> "/usr/local/lib/python2.7/site-packages/numpy/core/__init__.py",
>> line 14, in <module>
>>     from . import multiarray
>> ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by
>> /usr/local/lib/gcc49/libgfortran.so.3 not found
>
> It looks like this port/pkg is looking for GCC_4.9.0. You seem to have
> GCC 4.6.0 installed on your system.
>
> My guess is that /usr/local/lib/gcc49/libgfortran.so.3 would be found
> if that is installed.

That has come up a few times, see -
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207750

When trying to load libgfortran the system installed libgcc_s is found
first (it has most likely already been loaded by another lib) and used,
but as it is built against an older version of gcc it fails to support
the needs of the newer libgfortran.

The work around is to set LD_LIBRARY_PATH to point to the current gcc
lib folder so that the newer libgcc_s is always found and used.

This can be done by creating a script that sets LD_LIBRARY_PATH and then
runs the script. Or you can set it in your shell login to be used all
the time.

-- 
FreeBSD - the place to B...Software Developing

Shane Ambler




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5b4df615-153a-f22a-d940-bb038cb5dc78>