Задать вопрос
@Alecxandrys

Как разрешить конфликт?

День добрый,
Для npm install потребовалось gcc и build-essential
Фрагмент консоли
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Linux 4.15.0-33-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /root/flexer/middle/bundle/programs/server/node_modules/fibers
gyp ERR! node -v v10.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-gyp exited with code: 1
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: `sudo apt-get install g++ build-essential`
Alpine users please run: `sudo apk add python make g++`


gcc после разрешения проблемы зависимостей от конкретных версии пакетов встал
Но build-essential имеет в зависимостях libc6=2.23-0ubuntu10
Консоль
# sudo apt install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 build-essential : Depends: libc6-dev but it is not going to be installed or
                            libc-dev
                   Depends: g++ (>= 4:5.2) but it is not going to be installed
                   Depends: dpkg-dev (>= 1.17.11) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
# sudo apt install libc6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 (= 2.23-0ubuntu10) but 2.27-3ubuntu1 is to be installed
             Depends: libc-dev-bin (= 2.23-0ubuntu10) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

И тут начинаются проблемы, так как
Консоль
# sudo apt install libc6=2.23-0ubuntu10
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ///Список пакетов
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  nginx-light
Suggested packages:
  glibc-doc locales nginx-doc
The following packages will be REMOVED:
  ///Список пакетов
The following NEW packages will be installed:
  nginx-light
The following packages will be DOWNGRADED:
  libc6
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) libapt-pkg5.0 (due to apt) libgnutls30 (due to apt) bsdutils libsystemd0 (due to bsdutils) coreutils e2fsprogs libblkid1 (due to e2fsprogs)
  libuuid1 (due to e2fsprogs) fdisk libfdisk1 (due to fdisk) libmount1 (due to fdisk) libsmartcols1 (due to fdisk) init systemd-sysv (due to init) libc-bin login
  libpam-runtime (due to login) libpam-modules (due to login) mount util-linux (due to mount) sysvinit-utils libudev1 (due to util-linux)
0 upgraded, 1 newly installed, 1 downgraded, 344 to remove and 0 not upgraded.
Need to get 2,895 kB of archives.
After this operation, 963 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] N
Abort.

Как разрешить конфликт? Или как произвести npm install без build-essential?

P.S.
Я нашел похожую тему, но там проблема была в gcc и в пакете не с таким набором зависимостей. У меня с gcc таких проблем не было.
  • Вопрос задан
  • 303 просмотра
Подписаться 1 Средний 3 комментария
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы