glibc

Printing floating point numbers in assembler

杀马特。学长 韩版系。学妹 提交于 2019-12-10 10:44:41
问题 I'm trying to print a floating-point value from assemler calling a printf function. It works fine with strings and integer values but fails printing floats. Here is an example of working code: global main extern printf section .data message: db "String is: %d %x %s", 10, 0 end_message: db ".. end of string", 0 section .text main: mov eax, 0xff mov edi, message movsxd rsi, eax mov rdx, 0xff mov rcx, end_message xor rax, rax call printf ret String is: 255 ff .. end of string So, the parameters

GLIBCXX_3.4.15, GLIBC_2.15 and GLIBC_2.14 not found - Centos 6.5

元气小坏坏 提交于 2019-12-10 10:05:18
问题 I am trying to run an app but I get ... /usr/lib64/libstdc++.so.6: VERSION 'GLIBCXX_3.4.15' not found /lib64/libc.so.6: VERSION 'GLIBC_2.15' not found /lib64/libc.so.6: VERSION 'GLIBC_2.14' not found ... When I do "strings /usr/lib64/libstdc++.so.6 | grep GLIBC" i get a normal list... ... GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 ... GLIBCXX_3.4.13 GLIBCXX_2.2.5 GLIBCXX_2.3.2 ... I don't seem to find a simple tutorial on how to install the missing libs/files/dependencies, (or

The program cannot find correct version of glibc/libstdc++, although it was statically linked

旧街凉风 提交于 2019-12-10 04:34:06
问题 I am trying to link my program statically with glibc, because version of the glibc on the target machine is pretty much unpredictable. I used linker flags -static-libgcc and -static-libstdc++ and it worked fine. The executable is big, but I can live with it. Unfortunately, when I run my executable on the target machine (it is named 'mytest' in the example below) I get the following error: ./mytest: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by libboost_log.so.1.53

Error while importing Tensorflow in python2.7 in Red Hat release 6.6. 'GLIBC_2.17 not found'

自闭症网瘾萝莉.ら 提交于 2019-12-10 03:14:37
问题 This is essentially a repeat of question asked here. However, I am using Red Hat Version 6.6, which has glibc 2.12 (glibc 2.17, I think was introduced with RHEL ver 7). Is it possible to install tensorflow locally, without upgrading OS. (I don't have admin privileges). This is the error I am getting ImportError: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by /data02/storage/kgupt33/.local/anaconda/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so) 回答1: This is

linux 出现类似常见问题ImportError: libxxx: 或 'GLIBCXX_3.4.21' not found 的解决方法

若如初见. 提交于 2019-12-10 02:58:20
常见类似问题: ImportError: libxxx: cannot open shared object file: No such file or directory 原因1 :可能路径未配置正确 解决方法 :找到libxxx安装的目录,将目录添加到环境变量LD_LIBRARY_PATH [root@myserver ~]# find / -name libffi* /usr/local/lib64/libffi.so.6 /root/libffi-3.2.1/x86_64-unknown-linux-gnu/.libs/libffi.so.6 ... [root@myserver~]# echo $LD_LIBRARY_PATH [root@myserver~]# export LD_LIBRARY_PATH=”/usr/local/lib64/” 原因2 : 未安装该库,或版本过低 解决方法 : 查看适配的版本 yum whatprovides libxxx [root@kefu1013 thoth-ai]# yum whatprovides libXrender.so.1 Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors

mysql在linux环境的搭建部署

ぐ巨炮叔叔 提交于 2019-12-09 22:48:50
1、下载mysql-5.6.30-linux-glibc2.5-x86_64.tar.gz 2、解压到安装目录 #解压 tar -zxvf mysql-5.6.33-linux-glibc2.5-x86_64.tar.gz #添加目录 mkdir -p /usr/local/mysql #复制解压后的mysql目录 cp -r mysql-5.6.33-linux-glibc2.5-x86_64 /usr/local/ 3、添加用户组和用户 #添加用户组 groupadd mysql #添加用户mysql 到用户组mysql useradd -g mysql mysql 4、安装 1)、cd /usr/local/ 2)、rename mysql-5.6.30-linux-glibc2.5-x86_64 mysql * 3)、cd /usr/local/mysql/ 4)、mkdir -p ./data/mysql 5)、chown -R mysql:mysql ./ 6)、./scripts/mysql_install_db --user=mysql --datadir=/usr/local/mysql/data/mysql (错误1) 7)、cp support-files/mysql.server /etc/init.d/mysqld (错误2) 8)、chmod 755

CentOS上mysql5.7.23安装

断了今生、忘了曾经 提交于 2019-12-09 21:46:50
因各种需要,要用到mysql, 记录下安装过程。 1.下载mysql 2.上传到服务器 利用putty上传到/usr/local目录下 在 https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html 下载putty后安装,将安装目录里的所有exe文件复制到 C:\Windows\System32 中即可在 cmd 中直接使用pscp功能,使用如下: pscp mysql-5.7.23-linux-glibc2.12-x86_64.tar.gz root@IP:/usr/local 3.安装 解压: tar mysql-5.7.23-linux-glibc2.12-x86_64.tar.gz 重命名: mv mysql-5.7.23-linux-glibc2.12-x86_64 mysql 创建用户组: groupadd mysql useradd -r -g mysql mysql 给mysql用户指定专有用户和用户组: 先创建data目录: cd /usr/local/mysql mkdir data cd /usr/local chown -R mysql mysql/ chgrp -R mysql mysql/ 初始化mysql: cd /usr/local/mysql/bin ./mysqld -

bitnami-常见问题(Linux)

江枫思渺然 提交于 2019-12-09 20:53:07
什么是Bitnami本机安装程序? Bitnami本机安装程序包含运行Bitnami打包应用程序所需的一切。下载后,您可以启动它,它将提供一步一步的向导。堆栈中包含的所有软件的安装和配置都是完全自动化的,这使得每个人(包括技术不太熟练的人)都可以轻松地启动和运行。 所有Bitnami本机安装程序都是完全独立的,并且独立于系统上安装的其他软件或库运行。这意味着您不必担心在系统上安装任何其他软件以使新应用程序正常工作。它们也不会干扰您系统上已安装的任何软件,因此您运行的所有软件都将继续正常运行。 Bitnami堆栈和Bitnami模块有什么区别? Bitnami安装有两种格式:独立堆栈和模块。 如果您只想安装一个Bitnami打包的应用程序,那么只需下载并安装堆栈即可。它将包含运行应用程序所需的一切。 如果要运行多个应用程序,可能需要下载 LAMP , MAMP 或 WAMP 堆栈,这样您就可以在其上安装多个应用程序模块。这样,您想要运行的所有Bitnami打包的应用程序将共享一个Apache,MySQL和PHP的实例,这将节省空间并提高性能。 要下载Bitnami堆栈或模块, 请访问Bitnami下载页面 ,选择要安装的应用程序,然后单击操作系统图标(Windows,Linux或Mac OS X)的下载链接。 本机安装程序的系统要求是什么? 要使用本机安装程序安装Bitnami堆栈

Centos6 升级glibc-2.17,解决Requires: libc.so.6(GLIBC_2.14)(64bit)错误解决方法

依然范特西╮ 提交于 2019-12-09 18:47:50
Centos6 升级glibc-2.17,解决Requires: libc.so.6(GLIBC_2.14)(64bit)错误解决方法 出现问题 在Centos6安装mysql 5.7.x 系列提示错误如下: [root@VM_0_5_centos mysql]# rpm -ivh mysql-community-libs-5.7.18-1.el6.x86_64.rpm warning: mysql-community-libs-5.7.18-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY error: Failed dependencies: libc.so.6(GLIBC_2.14)(64bit) is needed by mysql-community-libs-5.7.18-1.el6.x86_64 [root@VM_0_5_centos mysql]# 需要安装一下 libc.so.6(GLIBC_2.14)(64bit) 查看已安装的 gblic 版本 strings /lib64/libc.so.6 | grep GLIBC 执行如下: [root@VM_0_5_centos glibc-2.14]# strings /lib64/libc.so.6 | grep GLIBC

Explanation of memcpy memmove GLIBC_2.14/2.2.5

两盒软妹~` 提交于 2019-12-09 16:09:42
问题 My issue originated with a shared library I was given without the option to recompile the library. The error stated undefined reference to memcpy@GLIBC_2.14 . The version of GLIBC on my machine was 2.12. I have seen fixes people have done online using the line __asm__(".symver memcpy,memcpy@GLIBC_2.2.5"); The fix I made was using a hex editor to change the reference of 2.14 to GLIBC_2.2.5. When executing the command readelf -V lib_name.so , the outputs changed from: 0x0060 Name: GLIBC_2.14