amd64

go语言的交叉编译

爱⌒轻易说出口 提交于 2019-12-03 19:15:42
GGox 是一个简单的,不花俏的Go平台交叉编译工具,它的用处就和标准的 go build 一样。Gox 会并行地为多种平台编译。Gox 同时也提供了一套交叉编译工具链。 GGox 项目地址: https://github.com/mitchellh/gox 安装 为了安装 Gox,请使用 go get。我们已经为版本打上了标签,所以可以随便切换标签进行编译: $ go get github.com/mitchellh/gox ... $ gox -h ... 用法 在你使用 Gox 之前,你必须先有一套交叉编译工具链。Gox 可以自动帮你完成这个。你需要做的只是运行(每次更新 Go 都要这样做这步): $ gox -build-toolchain ... 当你完成这个,你可以已经准备好进行交叉编译了。 如果你知道怎么去使用 go build, 那么你也知道怎么去使用 Gox 了。例如,编译当前的项目,无需提供参数,只需要调用gox。Gox 就会根据 CPU 的数量并行地为各个平台编译: $ gox Number of parallel builds: 4 --> darwin/386: github.com/mitchellh/gox --> darwin/amd64: github.com/mitchellh/gox --> linux/386: github.com

Nuitka on Windows

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Having problems to compile hello-world.py using Nuitka on windows. The command I am using is: nuitka --standalone --portable --remove-output --recurse-all --python-version=3.4 hello_world.py The error is: WindowsError: [Error 2] The system cannot find the file specified: File "C:\Users\win_user\Anaconda3\Lib\site-packages\nuitka\build\SingleExe.scons", line 866: shell = False File "c:\Python27\lib\subprocess.py", line 709: errread, errwrite) File "c:\Python27\lib\subprocess.py", line 957: startupinfo) Same code compiles & runs fine on Linux.

cx_Freeze 5.0: ImportError: No module named 'scipy.__config__'

匿名 (未验证) 提交于 2019-12-03 08:28:06
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Problem I get the following error when trying to run an .exe built with cx_Freeze: File "C:\\WinPython-64bit-3.5.2.3Qt5\python-3.5.2.amd64\lib\site-packages\scipy\__init__py", line 105 in <module> from scipy.__config__ import show as show_config ImportError: No module named 'scipy.__config__' During handling of the above exception, another exception occurred: ... File "C:\\WinPython-64bit-3.5.2.3Qt5\python-3.5.2.amd64\lib\site-packages\scipy\__init__py", line 105 in <module> raise ImportError(msg) ImportError: Error importing scipy: you

[日常] lscpu查看cpu的详细信息

我的未来我决定 提交于 2019-12-03 07:22:07
查看自己电脑的cpu的详细信息 root@tao-PC:/home/tao# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 69 Model name: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz Stepping: 1 CPU MHz: 1704.097 CPU max MHz: 2700.0000 CPU min MHz: 800.0000 BogoMIPS: 4788.97 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 3072K NUMA node0 CPU(s): 0-3   Architecture: #架构   CPU(s): #逻辑cpu颗数   Thread(s) per core: #每个核心线程  

Errors while building/installing C module for Python 2.7

匿名 (未验证) 提交于 2019-12-03 02:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying getting the following errors while trying to install/compile ctools for python (version info) ActivePython 2.7.2.5 (ActiveState Software Inc.) based on Python 2.7.2 (default, Jun 24 2011, 12:22:14) [MSC v.1500 64 bit (AMD64)] on win32 OS: Windows 7 Professional 64-bit (Service Pack 1) Installed: Microsoft Visual C++ 2008 Express Edition Error: building 'deap.cTools' extension Traceback (most recent call last): File "setup.py", line 40, in cmdclass = {'build_py': build_py} File "C:\Python27\lib\distutils\core.py", line 152, in

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

匿名 (未验证) 提交于 2019-12-03 02:14: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

“unrecognized import path” with go get

匿名 (未验证) 提交于 2019-12-03 01:55:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to install a web.go , but running go get github.com/hoisie/web returns package bufio: unrecognized import path "bufio" package bytes: unrecognized import path "bytes" package crypto/rand: unrecognized import path "crypto/rand" package crypto/sha1: unrecognized import path "crypto/sha1" package crypto/tls: unrecognized import path "crypto/tls" package encoding/base64: unrecognized import path "encoding/base64" package encoding/binary: unrecognized import path "encoding/binary" package encoding/json: unrecognized import path

Running Cython in Windows x64 - fatal error C1083: Cannot open include file: &#039;basetsd.h&#039;: 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

MySQL 5.7 installation error `mysqld: Can&#039;t create/write to file &#039;/var/lib/mysql/is_writable&#039;`

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to install MySQL 5.7 on Ubuntu 14.04. Following are the steps I followed: rm -rf /var/lib/mysql mkdir -p /var/lib/mysql cd wget http://dev.mysql.com/get/mysql-apt-config_0.7.2-1_all.deb dpkg -i mysql-apt-config_0.7.2-1_all.deb apt-get update apt-get -y install mysql-server All the steps run perfectly except for the last one. It gives me the following error: mysqld: Can't create/write to file '/var/lib/mysql/is_writable' (Errcode: 13 - Permission denied) 2016-05-10T02:10:24.219279Z 0 [ERROR] --initialize specified but the data

cv::remap segfaults with std::thread

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am getting segfault with the following simple code: #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include <iostream> #include <thread> #include <unistd.h> void run() { sleep(1); // see below cv::Mat source(10, 10, CV_32FC1, -1); cv::Mat result(10, 10, CV_32FC1); cv::Mat trX(result.rows, result.cols, CV_32FC1, 5); cv::Mat trY(result.rows, result.cols, CV_32FC1, 5); cv::remap(source, result, trX, trY, cv::INTER_LINEAR, cv::BORDER_TRANSPARENT); std::cout << "done" << std::endl; } int main(int argc, char* argv[