apt-get

ubuntu 12.04 libudev-dev won't install because of dependencies

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a some sample c++ code that receives hotplug events using the udev library. It worked fine in Ubuntu 10.04. It's only prerequisite was the libudev-dev package: sudo apt-get install libudev-dev But when I tried to install that package in 12.04, I get: sudo apt-get install libudev-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

E: Unable to locate package npm

匿名 (未验证) 提交于 2019-12-03 02:15:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When i try to install npm with sudo apt-get install npm , i get following error: E: Unable to locate package npm Why can't apt find npm? Im using Debian 9 and already sudo apt-get install nodejs . 回答1: From the official Node.js documentation: A Node.js package is also available in the official repo for Debian Sid (unstable), Jessie (testing) and Wheezy (wheezy-backports) as "nodejs". It only installs a nodejs binary. So, if you only type sudo apt-get install nodejs , it does not install other goodies such as npm . You need to type: curl -sL

E: Unable to locate package npm

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When i try to install npm with sudo apt-get install npm , i get following error: E: Unable to locate package npm Why can't apt find npm? Im using Debian 9 and already sudo apt-get install nodejs . 回答1: From the official Node.js documentation: A Node.js package is also available in the official repo for Debian Sid (unstable), Jessie (testing) and Wheezy (wheezy-backports) as "nodejs". It only installs a nodejs binary. So, if you only type sudo apt-get install nodejs , it does not install other goodies such as npm . You need to type: curl -sL

how to enable sqlite3 for php?

匿名 (未验证) 提交于 2019-12-03 02:12:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to install sqlite3 for PHP in Ubuntu. I install apt-get php5-sqlite3 and edited php.ini to include sqlite3 extension. When I run phpinfo(); I get SQLITE3 SQLite3 support enabled sqlite3 library version 3.4 . 2 as shown above, sqlite3 is enabled. However, I get "Class SQLite3 not found" when I use new SQLite3 ( "database" ); 回答1: Edit: This answer is outdated, but can't be removed because it's accepted. Please see the solution from Stacey Richards for the correct answer. sudo apt - get install php5 - cli php5 - dev make

How to generate a Dockerfile from an image?

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is it possible to generate a Dockerfile from an image? I want to know for two reasons: I can download images from the repository but would like to see the recipe that generated them. I like the idea of saving snapshots, but once I am done it would be nice to have a structured format to review what was done. 回答1: To understand how a docker image was built, use the docker history --no-trunc command. You can build a docker file from an image, but it will not contain everything you would want to fully understand how the image was generated.

rmagick gem install “Can't find Magick-config”

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I get the error shown below when attempting to install the rmagick gem. I am on Snowleopard 10.6 using RVM, Ruby 1.9.2-head and Rails 3.05. Responses to similar questions recommended installing ImageMagick, which I successfully did. Other suggested installing the "libmagick9-dev library", however, I can not figure out how to do this. I'm a new developer, and any assistance or directions to an existing explanation or resource is greatly appreciated. Thanks! jjdevenuta ( opal ) $ gem install rmagick Fetching : rmagick - 2.13 . 1.gem

setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I try to install odoo-server , I got the following error: error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Could anyone help me to solve this issue? 回答1: Python.h is nothing but a header file. It is used by gcc to build applications. You need to install a package called python-dev. This package includes header files, a static library and development tools for building Python modules, extending the Python interpreter or embedding Python in applications. enter: $ sudo apt-get install python

Cannot install packages using node package manager in Ubuntu

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: NodeJS interpreter name( node ) on Ubuntu has been renamed to nodejs because of name conflict with another package. Here's what the readme.debian says: The upstream name for the Node.js interpreter command is "node". In Debian the interpreter command has been changed to "nodejs". This was done to prevent a namespace collision: other commands use the same name in their upstreams, such as ax25-node from the "node" package. Scripts calling Node.js as a shell command must be changed to instead use the "nodejs" command. However, using nodejs

Debian安装KDE图形界面

限于喜欢 提交于 2019-12-03 02:10:11
apt-get update #更新源 apt-get -u install x-window-system-core #安装X-Window的系统核心文件,在配置时请按照提示进行。如果X窗口启动不成功,可以运行dpkg-reconfigure xfree86-common重新进行配置。 apt-get -u install gdm gdm-themes #安装图形化登录窗口及窗口主题(之所以用gdm而不用kdm的主要原因是因为gdm配置更方便) apt-get -u install kde-core kde-i18n-zhcn #安装KDE核心文件及简体中文语言环境支持,这样就重启之后就可以使用KDE桌面系统了 若要安装Gnome,将 kde-core更改为Gnome-core就可以了。 来源: oschina 链接: https://my.oschina.net/u/1420/blog/16186