apt-get

gem install: Failed to build gem native extension (can't find header files)

匿名 (未验证) 提交于 2019-12-03 01:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using Fedora 14 and I have MySQL and MySQL server 5.1.42 installed and running. Now I tried to do this as root user: gem install mysql But I get this error: Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api

Error installing rmagick: ERROR: Failed to build gem native extension

匿名 (未验证) 提交于 2019-12-03 01:51:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to run one project on my local machine. I installed Ruby and Rails on my Mac OS system. It is working properly. I can create a new project and can run it properly without any error, but when I try to run the existing project it says that we have to bundle install . When I run that command I get the following error: "An error occurred while installing rmagick (2.13.2), and Bundler cannot continue. Make sure that `gem install rmagick -v '2.13.2'` succeeds before bundling." When I run gem install rmagick -v '2.13.2' it gives me the

ubuntu14.04 安装MySQL 5.7

杀马特。学长 韩版系。学妹 提交于 2019-12-03 01:48:09
ubuntu14.04 默认在线安装MySQL 5.5 1) wget http: //dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb 2) dpkg -i mysql -apt -config_0 .7 .3 - 1_all .deb 3) apt -get update 4) apt -get install mysql -server -->会有报错,执行下一步 5) apt-get -f install -->更改为在线安装mysql 5.7 6) select @@version; 查看版本 来源: https://www.cnblogs.com/karl-python/p/11770018.html

virtualenv(python3.4), pip install mysqlclient error

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I created virtualenv for django 1.9 project. I am trying to pip install mysqlclient or mysql-python but both of them gives me errors. pip install mysqlclient pip install mysql - python both give me the same error message: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/r4/bkv_4t9s4r140pjkgv6lsq8w0000gn/T/pip-build-cdxcssp9/mysqlclient any suggestions!? 回答1: Try to run this before: sudo apt - get install python - dev python3 - dev sudo apt - get install libmysqlclient - dev pip install pymysql pip

Android Studio fails to build new project, timed out while wating for slave aapt process

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I've installed Android Studio 1.2, and created a new project. When I attempt to build, it hangs. This is in the Gradle Console, along with about 20 other copies, with different numbers after png-cruncher_: Exception in thread "png-cruncher_2" java . lang . RuntimeException : Timed out while waiting for slave aapt process , try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than 5 seconds at com . android . builder . png . AaptProcess . waitForReady ( AaptProcess . java : 104 ) at com . android . builder . png .

How to check the version before install packages using apt-get

落花浮王杯 提交于 2019-12-03 01:32:58
问题 I'm thinking to install hylafax+ version 5.5.4 which was release last month on my Debian PC. I checked dpkg -l | grep "hylafax" and found out that the current version is 5.5.3. Then I checked apt-cache search hylafax and saw the packages are available, but I can't see any version number. How can I find the version of packages available in the apt-get ? 回答1: OK, I found it. apt policy <package name> will show the version details. It also shows which version is currently installed and which

setup script exited with error: command &#039;x86_64-linux-gnu-gcc&#039; failed with exit status 1

匿名 (未验证) 提交于 2019-12-03 01:26:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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

I&#039;m unable to install opencv-contrib-python in docker

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I tried installing opencv-contrib-python but I'm unable to get it to work on docker. It says Could not find a version that satisfies the requirement opencv-contrib-python I tried, pip install opencv-contrib-python-headless Then, I tired https://github.com/cassiobotaro/docker-opencv-contrib/blob/master/Dockerfile and I also tried, FROM python:3.5-alpine COPY . /app WORKDIR /app RUN apk add --no-cache ca-certificates RUN apk add --no-cache git build-base musl-dev alpine-sdk cmake clang clang-dev make gcc g++ libc-dev linux-headers RUN mkdir

Ubuntu: OpenJDK 8 - Unable to locate package

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So I just installed Ubuntu, and this is my first time working in a Linux environment, so bear with my noobishness here. Anyway, I downloaded the Java 8 JDK directly from Oracle, but I understand there's also an OpenJDK for Java 8 as well. I have two questions. What is the difference between the Oracle version and OpenJDK. Pros/Cons? When I try and get OpenJDK 8, I can't. I'm pasting the terminal command and the error message I get here, hoping for advice. Again, very new to Linux, been on my first Linux distro ever for less than an hour here

Cordova: You may not have the required environment or OS to run this project

匿名 (未验证) 提交于 2019-12-03 01:22:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: On Linux Mint 17.1 x86_64, Cordova v4.3.0 gives this error: $ cordova run android Running command : /home/ naman / test / platforms / android / cordova / run WARNING : No target specified , deploying to emulator WARNING : no emulator specified , defaulting to Sample Waiting for emulator ... Booting up emulator ( this may take a while ).... BOOT COMPLETE / home / naman / test / platforms / android / cordova / node_modules / q / q . js : 126 throw e ; ^ Error : ENOENT , no such file or directory '/opt/software/android-sdk/tools/tools