How to cython x86_64 linux .so on aarch64 m1 macbook? - cython

I have aarch64 mac and need to deploy cython code to x86_64 linux server. Is there any flags or smth I missing?

Related

CUDA 7.5 installation: Unsupported compiler error

I just tried installing CUDA 7.5 on my laptop. I disabled lightdm and did sudo sh cuda7.5.run. The driver installation passed but then I got an error Unsupported compiler ... and the installation fails. How can I resolve this issue?
I had a similar issue installing CUDA 7.5 in Ubuntu 16.04.
I've solved it using gcc/g++ 4.8 instead of 5.2.
You can install it and switch the default version using the command update-alternatives --install
For gcc 4.8 do:
sudo apt-get install gcc-4.8
sudo update-alternatives --remove-all gcc
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
For g++ 4.8 do:
sudo apt-get install g++-4.8
sudo update-alternatives --remove-all g++
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 10
The problem was with Ubuntu 15.10. I installed 14.04 and could install CUDA. However, for my laptop there was a subtle point to mention. I had to install the NVIDIA driver via System Settings --> Software & Updates --> Additional Drivers and selecting the tested driver. Then I installed CUDA and answered No to driver installation bundled with CUDA installation file.
You do not need to downgrade your gcc version.
For the people who want to keep their gcc version, I recommend you use the following way.
http://kislayabhi.github.io/Installing_CUDA_with_Ubuntu/
sudo apt-get update unity should also help

install phpmyadmin with mysql 5.6.13 CentOS 6.4 64bit

I installed CentOS 6.4 x86_64 and then install on it web server and mysql 5.6.13
MySQL-server-5.6.13-1.el6.x86_64.rpm
MySQL-client-5.6.13-1.el6.x86_64.rpm
MySQL-shared-5.6.13-1.el6.x86_64.rpm
MySQL-devel-5.6.13-1.el6.x86_64.rpm
and I want to install phpmyadmin
I used yum install phpmyadmin but not working
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
phpMyAdmin noarch 3.5.8.1-1.el6 epel 4.3 M
Installing for dependencies:
libXpm x86_64 3.5.10-2.el6 base 51 k
libmcrypt x86_64 2.5.8-9.el6 epel 96 k
mysql-libs x86_64 5.1.69-1.el6_4 updates 1.2 M
php-gd x86_64 5.3.3-23.el6_4 updates 106 k
php-mbstring x86_64 5.3.3-23.el6_4 updates 455 k
php-mcrypt x86_64 5.3.3-1.el6 epel 18 k
php-mysql x86_64 5.3.3-23.el6_4 updates 81 k
php-pdo x86_64 5.3.3-23.el6_4 updates 75 k
php-php-gettext noarch 1.0.11-3.el6 epel 21 k
Transaction Summary
================================================================================
Install 10 Package(s)
Total size: 6.4 M
Installed size: 25 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Check Error:
file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.69-1.el6_4.x86_64 conflicts with file from package MySQL-server-5.6.13-1.el6.x86_64
file /usr/share/mysql/charsets/armscii8.xml from install of mysql-libs-5.1.69-1.el6_4.x86_64 conflicts
Error Summary
Thank in advance
Install MySQL-shared-compat-5.6.13-1.el6.x86_64.rpm and it will work.

Installing CUDA 5.0 RC samples

I tried to install the full CUDA 5.0 package but I got the following error:
Driver: Not Selected
Toolkit: Not Selected
Samples: Installation Failed. Missing required libraries.
So, in the /tmp/cuda_install_2340.log I've got:
Missing required library libglut.so
But I have installed it before, because I do:
facundo#gpgpu:~$ locate libglut
/usr/lib/x86_64-linux-gnu/libglut.a
/usr/lib/x86_64-linux-gnu/libglut.so
/usr/lib/x86_64-linux-gnu/libglut.so.3
/usr/lib/x86_64-linux-gnu/libglut.so.3.9.0
So, What is the problem? I am on Ubuntu 12.04
I'm on Ubuntu 12.04, I fixed it by the following:
sudo ln -s /usr/lib/x86_64-linux-gnu/libglut.so /usr/lib/libglut.so
So the problem was ubuntu are installing libglut library in a different path for x64 architectures, so it can be fixed making a symbolic link to /usr/lib/.
On CentOS 5.6 x64 , Kernel: 2.6.18-308.24.1.el5
1. yum install freeglut
2. ln -s /usr/lib/libglut.so.3 /usr/lib/libglut.so
then i also install CUDA 5.0 Sample successfully.
Thanks this post.
Ubuntu 12.04 x64 actually creates a /usr/lib/glut.so -- it just points to libglut.so.3 not /usr/lib/x86_64-linux-gnu/libglut.so
rm /usr/lib/libglut.so;
ln -s /usr/lib/x86_64-linux-gnu/libglut.so /usr/lib/libglut.so

MacPort and py26-mysql os x lion

I can't install py26-mysql with macport.
sudo port install py26-mysql
and I get
Error: org.macports.configure for port py26-mysql returned: you must select either mysql4, mysql5, mysql51 or mysql55
. I have install mysql5 and mysql5-server with mac port. On my mac i have juste mysql5.
Thanks for your help.
I have encountered a similar problem when installing MySQL adaptor for python. I'm assuming you want to install this package [http://mysql-python.sourceforge.net/].
My solution was to install the package through pip (a Python Package Installer), which you can get from mac ports. On mac ports there are several versions of pip based on which version of python you're running, for example if you're running python 2.6 the pip package name on macports is:
py26-pip
and for python 2.7 its:
py27-pip
Once you've done that you can install the same py26-mysql package running the following in the commandline:
sudo pip-2.6 install mysql-python
(assuming python 2.6)
Hope that helps

CFLAGS is not taken into account, why?

I'm compiling Apache 2.2.17 for my Mac OS X 10.5.8 Intel 64bit computer and I prefer the 64bit compilation so I give the necessary flags before the ./configure like so:
CFLAGS="-arch x86_64"
but the newly compiled binary just isn't 64bit:
file /usr/local/apache/bin/httpd
/usr/local/apache/bin/httpd: Mach-O executable i386
I'm confused.
I've tried variations such as:
CFLAGS="-arch x86_64"
CXXFLAGS="-arch x86_64"
LDFLAGS="-arch x86_64"
all with or without "export" or the "env" command at the start (e.g. export CFLAGS="-arch x86_64") and the result's unchanged.
What could be wrong?