lib

…mysql2/mysql2.so: [BUG] Segmentation fault ruby 2.0.0p247

匿名 (未验证) 提交于 2019-12-03 02:00:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm using windows7x64, ruby2.0.0p247, rails4.0.0 and mysql5.5.27. When I run the $ rails server command, I got the following error. C : /Ruby200-x64/ lib / ruby / gems / 2.0 . 0 / gems / mysql2 - 0.3 . 13 / lib / mysql2 / mysql2 . so : [ BUG ] Segmentation fault ruby 2.0 . 0p247 ( 2013 - 06 - 27 ) [ x64 - mingw32 ] How can I get rid of this error? 回答1: The libmysql.lib included in the MySQL Connector/C 64 bit is not compatible with the mingw64-gcc compiler. You need to generate mingw64 compatible libmysql.lib file. To generate

Cannot save matplotlib animation with ffmpeg

匿名 (未验证) 提交于 2019-12-03 02:00:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to save a simple matplotlib animation from Jake Vanderplas , but I keep getting OSError: [Errno 13] Permission denied . I should note that I made two small modifications to Jake Vanderplas's example. I installed ffmpeg from MacPorts so I added the line plt.rcParams['animation.ffmpeg_path'] = '/opt/local/bin' and I ran into the problem discussed in ( Using FFmpeg and IPython ), so I added FFwriter = animation.FFMpegWriter() . Here is the code: import numpy as np from matplotlib import pyplot as plt from matplotlib import

rancher清理主机脚本

青春壹個敷衍的年華 提交于 2019-12-03 01:59:42
#!/bin/bash #From:rancher #date:2019-10-18 #admin:jarno # 停止服务 systemctl disable kubelet.service systemctl disable kube-scheduler.service systemctl disable kube-proxy.service systemctl disable kube-controller-manager.service systemctl disable kube-apiserver.service systemctl stop kubelet.service systemctl stop kube-scheduler.service systemctl stop kube-proxy.service systemctl stop kube-controller-manager.service systemctl stop kube-apiserver.service # 删除所有容器 docker rm -f $(docker ps -qa) # 删除所有容器卷 docker volume rm $(docker volume ls -q) # 卸载mount目录 for mount in $(mount | grep tmpfs | grep '

Cannot find libcrypto library error

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When i am trying to compile a C code which uses openssl 'crypto' library functions with comand line -lcrypto with gcc 4.4.3 it gives an error `@ubu:$ gcc -ggdb aes_m.c -Werror -Wall -I /usr/local/ssl/include/ -lcrypto -o aes /usr/bin/ld: cannot find -lcrypto collect2: ld returned 1 exit status` what can be the reason for this?? I have already gone through this discussion ld cannot find an existing library but that does not help. locate command results in $ locate libcrypto /home/abhi/Downloads/openssl-1.0.1b/libcrypto.a /home/abhi/Downloads

OpenCV 3.0 Trouble with Installation

匿名 (未验证) 提交于 2019-12-03 01:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I need OpenCV3.0 since it supports some new functions which I need. I used the following code for installation (I had successfully installed OpenCV 2.4.9 using this code. But for OpenCV 3.0, while doing the cmake section, some error pops up due to mismatch of MD5 checksum) mkdir OpenCV cd OpenCV echo "Removing any pre-installed ffmpeg and x264" sudo apt - get - qq remove ffmpeg x264 libx264 - dev echo "Installing Dependenices" sudo apt - get - qq install libopencv - dev build - essential checkinstall cmake pkg - config yasm libjpeg

Running Cython in Windows x64 - fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory

匿名 (未验证) 提交于 2019-12-03 01:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have been trying to install Cython for Python 2.7 on my Window 7 system. In particular, I prefer everything in 64 bits. (In case you wonder, I need Cython because Cython is one of the components I need for another package for some specialized numerical analysis. And x64 is potentially an advantage for storage of large data sets.) So I downloaded the x64 Python 2.7 from the official website. Got Cython from Christoph Gohlke . The amd64 version for Python 2.7 of course. Before I installed, I added Python 2.7 into the registry with the .reg

slam package install fails with make error

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to install the slam package, but it seems to fail on my system. I'm running ubuntu 12.04. I thought it was a missing library or something so I installed a few that match liblas, but no dice. * installing * source * package ‘ slam ’ ... ** package ‘ slam ’ successfully unpacked and MD5 sums checked ** libs gcc - std = gnu99 - I / usr / share / R / include - DNDEBUG - fpic - O3 - pipe - g - c grouped . c - o grouped . o gcc - std = gnu99 - I / usr / share / R / include - DNDEBUG - fpic - O3 - pipe - g - c sparse . c - o

Rails pg gem Incompatible library version

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm getting the following 'incompatible library version' error when I try and access my Ruby on Rails website in development mode. incompatible library version - /var/ www / vhosts / launch . site . com / httpdocs / vendor / bundle / ruby / 2.2 . 0 / gems / pg - 0.18 . 4 / lib / pg_ext . so ( LoadError ) / var / www / vhosts / launch . site . com / httpdocs / vendor / bundle / ruby / 2.2 . 0 / gems / pg - 0.18 . 4 / lib / pg . rb : 4 : in `require' /var/www/vhosts/launch.site.com/httpdocs/vendor/bundle/ruby/2.2.0/gems/pg-0.18.4/lib

Installing Theano on Windows - DLL load failed

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to install Theano on Windwos 8 Have followed these steps. I try to test using: import numpy as np import time import theano print ( 'blas.ldflags=' , theano . config . blas . ldflags ) A = np . random . rand ( 1000 , 10000 ). astype ( theano . config . floatX ) B = np . random . rand ( 10000 , 1000 ). astype ( theano . config . floatX ) np_start = time . time () AB = A . dot ( B ) np_end = time . time () X , Y = theano . tensor . matrices ( 'XY' ) mf = theano . function ([ X , Y ], X . dot ( Y )) t_start = time . time (

Cross compile Qt 5 HelloWorld app for ARMv7L

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've a simple Qt helloworld.cpp that I cross compiled for armv7l using Linaro GCC arm-linux-gnueabihf-g++ on Ubuntu 16.04 and copied the file on a target ARM board running Linux Kernel 4.4, GCC 5.3. The target is TI Vayu ES 2.0 (which has ARM Cortex A15 core). Source helloworld.cpp #include <QApplication> #include <QLabel> int main(int argc, char **argv){ QApplication app(argc,argv); QLabel label("Hello World"); label.show(); return app.exec(); } helloworld.pro QT += core gui widgets SOURCES += helloworld.cpp Build: patel@11:02:43~$make arm