From owner-freebsd-questions@freebsd.org Mon Jan 30 10:30:15 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F3187CC7A95 for ; Mon, 30 Jan 2017 10:30:15 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by mx1.freebsd.org (Postfix) with ESMTP id 66375C4; Mon, 30 Jan 2017 10:30:14 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp121-45-92-196.bras1.adl6.internode.on.net (HELO leader.local) ([121.45.92.196]) by ipmail06.adl6.internode.on.net with ESMTP; 30 Jan 2017 20:55:05 +1030 Subject: Re: Need help with python To: Joseph Olatt , Bernt Hansson References: <20170128162858.GA5721@centos6.eskimo.com> Cc: trasz@FreeBSD.org, "freebsd-questions@freebsd.org" From: Shane Ambler Message-ID: <5b4df615-153a-f22a-d940-bb038cb5dc78@ShaneWare.Biz> Date: Mon, 30 Jan 2017 20:55:03 +1030 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170128162858.GA5721@centos6.eskimo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 10:30:16 -0000 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 >> 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