glibc

LFS 7.2 glibc-2.16.0 make error

∥☆過路亽.° 提交于 2019-12-13 21:53:23
问题 I'm building an LFS system ( refering to LFS 7.2 ) I got this make error while building glibc-2.16.0: /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find -lgcc_s collect2: error: ld returned 1 exit status make[2]: *** [/mnt/lfs/sources/glibc-build/iconv/iconvconfig] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0/iconv' make[1]: *** [iconv/others] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0' make: **

linux centos7.4 安装mysql5.7.25

左心房为你撑大大i 提交于 2019-12-13 17:20:58
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> linux下安装mysql有三种方式:①yum安装 ②rpm安装 ③源码包安装 这里介绍第三种安装方式 操作系统:centos7.4 mysql版本:5.7.25,安装时注意版本区别,不同版本安装配置稍有差异。 若之前装过mysql请先删除再进行安装 1.卸载centos7自带的 MariaDB rpm -qa|grep mariadb // 查询出来已安装的mariadb rpm -e --nodeps mariadb-libs-5.5.52-1.el7.x86_64 //删除查询出来的mariadb //安装依赖 yum -y install numactl.x86_64; 2.官网下载源码包 下载页面:https://dev.mysql.com/downloads/mysql/ 该页面下方是最新版本,圆圈中的位置是旧版本 点击 Download 按钮会让你登录之后下载 这里上传到服务器有两种方式 ①下载到本地(windows系统),通过上传工具发送到服务器 ②在Linux命令界面进入要放置安装包的目录例如 cd /usr/local 右击上图 Download 按钮——复制链接地址——在linux命令界面执行——wget 复制的链接地址 wget https://dev.mysql.com/get

mysql-5.7.28-linux-glibc2.12-x86_64配置(参考)

我怕爱的太早我们不能终老 提交于 2019-12-13 16:41:50
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> [client] socket = /data/mysql/var/mysql.sock port = 3306 [mysqld] #######################GENERIC################## autocommit = OFF connect_timeout = 10 default_authentication_plugin = mysql_native_password default_storage_engine = InnoDB event_scheduler = ON interactive_timeout = 600 wait_timeout = 600 lower_case_table_names = 1 max_sort_length = 8192 max_allowed_packet = 1073741824 max_connect_errors = 100000 max_connections = 2000 max_execution_time = 0 max_user_connections = 1000 open_files_limit = 65536 net_buffer_length = 16384 port = 3306 read_only =

Why are islower() and friends required to handle EOF?

半腔热情 提交于 2019-12-13 14:12:31
问题 Why are islower() and friends required to handle EOF , whereas putchar() and friends don't have to? Why isn't islower() treating int as unsigned char , as it is the case in putchar() ? This would make total sense, because we have to check for EOF first anyway. See also Why the argument type of putchar(), fputc(), and putc() is not char? 回答1: because we have to check for EOF first anyway. We absolutely don't. int c; while(isspace(c=fgetc(fp))); if (c==EOF) ... This is totally legitimate code

C program compiling with glibc and not the default libraries: Permission denied on execution

∥☆過路亽.° 提交于 2019-12-13 13:08:50
问题 it's my first question on stackoverflow, so I will try to do it well. Context: I would like to deliver a program who could run on every Linux distribution (for example, a program who will use C++11, running on a system who don't have the C++11 library). For that I would like to copy all the libraries who are used by my program and put them in a folder with the executable, so it can use these libraries instead of the system's one. I got 2 environments to test: - Opensuse, with (GNU libc) 2.19

How to use alternate glibc with existing libstdc++?

ε祈祈猫儿з 提交于 2019-12-13 05:53:56
问题 I need to use a self-compiled version of glibc (2.18), newer than the default one on the system (2.15). I can compile&link a C++ program, but when I try to run it, I get errors about libstdc++.so.6 . (C programs seems to work just fine.) Do I need to recompile gcc against the newer glibc for this to work? Why? (Update: I figured this part out, but I have a few other questions at the bottom.) Here is a sample C++ program: #include <iostream> int main() { std::cout << "ok\n"; return 0; }

Build and run C++ code on different version of Linux and glibc

你离开我真会死。 提交于 2019-12-13 04:09:13
问题 Before asking the question I want to clarify that I am an Android developer with no experience of Linux and C/C++ programming. The only way I know to build a C project on Linux is through Eclipse but given a pointer or details on doing it other way I will not hesitate. So something in the question below might look awkward. I have an issue where I compiled a cpp project and made executable on Ubuntu 12.04 using Eclipse Indigo. It runs fine here. Now I have to use the same executable on a RH

Building crti.o for i386

£可爱£侵袭症+ 提交于 2019-12-13 03:54:55
问题 I am trying to build a cross-compiler with x86_64 being the host and i386 being the target. I'm getting the (all to common) crti.o: No such file error. Instead of grabbing an already built crti.o and crtn.o from a distro... how might I go about building these files explicitly from glibc (or possibly gcc) sources? FYI, I am well aware of the -m32 option for x86_64 compilers. I'd prefer to just have a 32bit-only compiler environment. Also, the reason I don't want to use any of the gazillion

Java process getting killed likely due to Linux OOM killer

家住魔仙堡 提交于 2019-12-13 03:27:03
问题 My java process is getting killed after sometime. The heap settings are min - 2 Gb and max 3 Gb with parallel GC. From pmap command, it is showing more than 40 64Mb anonymos blocks which seems to be causing linux OOM killer. Error : There is insufficient memory for the Java Runtime Environment to continue. Native memory allocation (mmap) failed to map 71827456 bytes for committing reserved memory. Possible reasons: The system is out of physical RAM or swap space In 32 bit mode, the process

herror deprecated

萝らか妹 提交于 2019-12-12 14:31:32
问题 Answering another question, I stumbled upon the man page of a function called herror . It appears to be very much like perror except it prints errors related to some host lookup problem. The man page states that this function is “obsolete”. A function hsterror which could be used to turn the error number into a string without printing it is marked obsolete as well. What I don't see is any indication as to why either of them is obsolete, and what replacement should be used instead. So what is