$ python Python 3.6.1 (default, Mar 27 2017, 00:27:06) [GCC 6.3.1 20170306] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import nummpy as np Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'nummpy' >>> import numpy as np Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/numpy/core/__init__.py", line 16, in <module> from . import multiarray ImportError: libgfortran.so.3: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.6/site-packages/numpy/__init__.py", line 142, in <module> from . import add_newdocs File "/usr/lib/python3.6/site-packages/numpy/add_newdocs.py", line 13, in <module> from numpy.lib import add_newdoc File "/usr/lib/python3.6/site-packages/numpy/lib/__init__.py", line 8, in <module> from .type_check import * File "/usr/lib/python3.6/site-packages/numpy/lib/type_check.py", line 11, in <module> import numpy.core.numeric as _nx File "/usr/lib/python3.6/site-packages/numpy/core/__init__.py", line 26, in <module> raise ImportError(msg) ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try `git clean -xdf` (removes all files not under version control). Otherwise reinstall numpy.
Original error was: libgfortran.so.3: cannot open shared object file: No such file or directory
R et Octave ne démarrent plus:
$ R /usr/lib64/R/bin/exec/R: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory
$ octave /usr/lib/octave/4.2.1/exec/x86_64-pc-linux-gnu/octave-gui: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory
$ pacman -Ss gcc core/gcc 7.1.1-3 (base-devel) The GNU Compiler Collection - C and C++ frontends core/gcc-ada 7.1.1-3 Ada front-end for GCC (GNAT) core/gcc-fortran 7.1.1-3 [installé] Fortran front-end for GCC core/gcc-go 7.1.1-3 Go front-end for GCC core/gcc-libs 7.1.1-3 (base) Runtime libraries shipped by GCC core/gcc-objc 7.1.1-3 Objective-C front-end for GCC extra/gcc49 4.9.3-2 [installé] The GNU Compiler Collection extra/libgsystem 2015.2+4+gd606bec-1 "Copylib" for system service modules using GLib with GCC community/aarch64-linux-gnu-gcc 7.1.0-1 The GNU Compiler Collection - cross compiler for ARM64 target community/arduino-avr-core 1.6.19-1 Arduino AVR core with upstream avr-gcc and avrdude community/arm-none-eabi-gcc 7.1.0-1 The GNU Compiler Collection - cross compiler for ARM EABI (bare-metal) target community/avr-gcc 7.1.0-1 The GNU AVR Compiler Collection community/colorgcc 1.4.4-2 A Perl wrapper to colorize the output of compilers with warning/error messages matching the gcc output format community/gcc-docs 6.3.0-1 Set of HTML documentation for GCC community/gcc5 5.4.0-1 [installé] The GNU Compiler Collection (5.x.x) community/gdc 6.2.1-2 Compiler for D programming language which uses gcc backend community/mingw-w64-gcc 7.1.1-1 (mingw-w64-toolchain mingw-w64) Cross GCC for the MinGW-w64 cross-compiler multilib/gcc-ada-multilib 7.1.1-3 Ada front-end for GCC (GNAT) for multilib multilib/gcc-fortran-multilib 7.1.1-3 Fortran front-end for GCC for multilib multilib/gcc-go-multilib 7.1.1-3 Go front-end for GCC for multilib multilib/gcc-libs-multilib 7.1.1-3 [installé] Runtime libraries shipped by GCC for multilib multilib/gcc-multilib 7.1.1-3 (multilib-devel) [installé] The GNU Compiler Collection - C and C++ frontends for multilib multilib/gcc-objc-multilib 7.1.1-3 Objective-C front-end for GCC for multilib multilib/lib32-gcc-libs 7.1.1-3 [installé] Runtime libraries shipped by GCC (32-bit)
Il semble que la version de gcc soit trop en avance. Peut-on desinstaller gcc 7 sans risque?
Oui, je viens de le faire , ça se vire sans problème. Je l'ai réinstallé depuis le cache. Si tu n'as pas fait sudo pacman -Sc tu pourras installer une version antérieur avec
sudo pacman -U /var/cache/pacman/pkg/gcc(version que tu as en réserve).tar.gz
Noyau récent MANJARO x86_64 bits: 64 Xfce 4.16
ASUSTeK model: PRIME B350M-A v: Rev X.0x
6-Core: AMD Ryzen 5 2600X
AMD Baffin [Radeon RX 460/560D / Pro
driver: amdgpu v: kernel
Display: x11 server: X.Org driver: amdgpu,ati unloaded: modesetting
OpenGL: renderer: Radeon RX 560 Series
Arch en Dual. Aucun lien publicitaire ne saurait être toléré dans la signature!
y a-t-il un moyen de voir l'effet d'une commande pacman san l'effectuer? La suppression de gcc-multilib entraine la suppression de très nombreux paquets haskell ... j'ai un peur peur d'effets en cascade.
Oui, on lance la commande en sudo , mais on ne confirme pas. Un pacman -Qi donnera toutes les infos du paquet y compris les paquets qui le requièrent. Pour ma part, je n'en vois aucun....
[steph@steph-lenovo ~]$ pacman -Qi gcc Nom : gcc Version : 7.1.1-3 Description : The GNU Compiler Collection - C and C++ frontends Architecture : x86_64 URL : http://gcc.gnu.org Licences : GPL LGPL FDL custom Groupes : base-devel Fournit : -- Dépend de : gcc-libs=7.1.1-3 binutils>=2.28 libmpc Dépendances opt. : -- Requis par : -- Optionnel pour : xorg-xrdb Est en conflit avec : -- Remplace : -- Taille installée : 115,60 MiB Paqueteur : Bartłomiej Piotrowski <bpiotrowski@archlinux.org> Compilé le : mer. 21 juin 2017 08:56:24 CEST Installé le : dim. 09 juil. 2017 19:08:10 CEST Motif d’installation : Explicitement installé Script d’installation : Non Validé par : --
Noyau récent MANJARO x86_64 bits: 64 Xfce 4.16
ASUSTeK model: PRIME B350M-A v: Rev X.0x
6-Core: AMD Ryzen 5 2600X
AMD Baffin [Radeon RX 460/560D / Pro
driver: amdgpu v: kernel
Display: x11 server: X.Org driver: amdgpu,ati unloaded: modesetting
OpenGL: renderer: Radeon RX 560 Series
Arch en Dual. Aucun lien publicitaire ne saurait être toléré dans la signature!
Chez moi, il n'ypas de paquet gcc à proprement parlé:
$ pacman -Qi gcc erreur : le paquet « gcc » n’a pas été trouvé
il y a gcc-multilib
$ pacman -Qi gcc-multilib Nom : gcc-multilib Version : 7.1.1-3 Description : The GNU Compiler Collection - C and C++ frontends for multilib Architecture : x86_64 URL : http://gcc.gnu.org Licences : GPL LGPL FDL custom Groupes : multilib-devel Fournit : gcc=7.1.1-3 Dépend de : gcc-libs-multilib=7.1.1-3 binutils>=2.28 libmpc Dépendances opt. : -- Requis par : gcc-fortran ghc Optionnel pour : xorg-xrdb Est en conflit avec : gcc Remplace : -- Taille installée : 123,09 MiB Paqueteur : Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> Compilé le : dim. 28 mai 2017 19:22:21 CEST Installé le : dim. 09 juil. 2017 13:41:32 CEST Motif d’installation : Installé comme dépendance d’un autre paquet Script d’installation : Non Validé par : Signature