zlib

linux安装php & nginx

我怕爱的太早我们不能终老 提交于 2020-01-29 10:58:44
1.安装libxml2 地址: http://ftp.gnome.org/pub/GNOME/sources/libxml2/ wget http://caesar.acc.umu.se/pub/GNOME/sources/libxml2/2.6/libxml2-2.6.30.tar.gz ./configure --prefix=/usr/local/libxml2 make make install 失败的话执行 make clean,再重复上述操作 2.安装php -下载php ... ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-libxml-dir=/usr/local/libxml2 make make install 也可以使用yum安装软件包: yum list | grep xxx yum install -y libpng-devel libjpeg-devel freetype-devel libmcrypt-devel ... ./configure --prefix=/usr/local/php5.6 --with-config-file-path=/usr/local/php5.6/etc --enable-fpm --with-libxml-dir=

zlib inflate returning a buffer error

限于喜欢 提交于 2020-01-25 02:57:08
问题 I'm trying to decompress a zip file using zlib (without using any extension or 3rd party). Initially, the src_len is 48756255, and the dest_len is 49209890. The first pass in the while loop is fine: err is Z_OK and the second pass through starts. On the second pass, no matter what I do I get a Z_BUF_ERROR from inflate. stream.total_out at this point is 49034460, so there is a bit remaining but stream.avail_in on the second pass is 0. In any case, I would expect inflate to give me Z_STREAM_END

why minizip doesn't archive large file (larger 4 GB)

时光毁灭记忆、已成空白 提交于 2020-01-24 20:34:37
问题 I am trying to use static minizip library on Windows 7 64-bit, using Visual Studio 2010. The main goal is to archive files larger 4GB. I build zlib using CMake 2.8, and linked in to my project. It works for files less 4GB, but doesn't work proper for files larger 4GB. Why I have a problem with archiving 5GB file using minizip? Did I miss something on the build libraries stage? Here are all my steps, library and project: https://github.com/koponomarenko/file_compression Really need help.

Windows下编译 Hadoop

↘锁芯ラ 提交于 2020-01-24 15:25:50
Windows下编译 Hadoop-2.9.2 系统环境 系统: Windows 10 10.0_x64 maven: Apache Maven 3.6.0 jdk: jdk_1.8.0_201 ProtocolBuffer: portoc-2.5.0 zlib: 1.2.3-lib OpenSSL: 1_0_2r cmake: 3.14.3-win64-x64 Cygwin: 2.897_x86_64 Visual Studio: Visual Studio 2010 Professional hadoop: hadoop-2.9.2 Hadoop源码包你们的的编译环境要求 Building on Windows ---------------------------------------------------------------------------------- Requirements: * Windows System * JDK 1.7 or 1.8 * Maven 3.0 or later * Findbugs 1.3.9 (if running findbugs) * ProtocolBuffer 2.5.0 * CMake 2.6 or newer * Windows SDK 7.1 or Visual Studio 2010 Professional

Compress into .zip file with node.js core zlib module

血红的双手。 提交于 2020-01-24 07:35:00
问题 How can I compress a file/files and save into a .zip extension file with the provided node.js zlib module? I figured how to save into .gz using gzip like the following: const gzip = zlib.createGzip(); const fs = require('fs'); const input = fs.createReadStream('myfile.txt'); const out = fs.createWriteStream('myfile.txt.gz'); input.pipe(gzip).pipe(out); 来源: https://stackoverflow.com/questions/48638885/compress-into-zip-file-with-node-js-core-zlib-module

Compress into .zip file with node.js core zlib module

若如初见. 提交于 2020-01-24 07:34:10
问题 How can I compress a file/files and save into a .zip extension file with the provided node.js zlib module? I figured how to save into .gz using gzip like the following: const gzip = zlib.createGzip(); const fs = require('fs'); const input = fs.createReadStream('myfile.txt'); const out = fs.createWriteStream('myfile.txt.gz'); input.pipe(gzip).pipe(out); 来源: https://stackoverflow.com/questions/48638885/compress-into-zip-file-with-node-js-core-zlib-module

Static ZLIB (1.2.8) linking on Visual Studio 2012

北城以北 提交于 2020-01-23 05:53:34
问题 I can't, for the love of God, to static link the ZLIB libs. I have been struggling for a couple hours now with no success. Well, I have followed this tutorial and successfuly compiled both zlibstat.lib and zlibwapi.lib for 32 bits. After setting up my project to use the ZLIB folder with the libraries (Linker > General > Additional Library Directories) and setting zlibwapi.lib (only) as an dependency (Linker > Input > Additional Dependencies) I got it to work , however, that was a dynamic link

apache web服务器

社会主义新天地 提交于 2020-01-22 05:46:42
一、安装 apache2.4.23 新版本的 httpd-2.4 新增以下特性; 新增模块; mod_proxy_fcgi(可提供 fcgi 代理) mod_ratelimit(限制用户带宽) mod_request(请求模块,对请求做过滤) mod_remoteip(匹配客户端的 IP 地址) 对于基于 IP 的访问控制做了修改,不再支持 allow,deny,order 机制,而是统一使用 require 进行 还新增以下几条新特性; 1、MPM 支持在运行时装载;不过要开启这种特性,在编译安装要启用这三种功能; --enable-mpms-shared=all --with-mpm=event 2、支持 event 3、支持异步读写 4、在每个模块及每个目录上指定日志级别 5、增强版的表达式分析器 6、每请求配置:, 7、毫秒级别的 keepalive timeout 8、基于 FQDN 的虚拟主机不再需要 NameVirtualHost 指令 9、支持使用自定义变量 安装环境:操作系统:Centos7.2,关闭 selinux 检查 httpd 包是否安装,如查安装则卸载 [root@www ~]# rpm -q httpd 1、安装 apache2.4.23 下载源码包: httpd-2.4.23.tar.gz apr-1.5.2.tar.gz apr-util-1.5

【NGINX】LINUX安装NGINX

本小妞迷上赌 提交于 2020-01-21 08:35:58
安装依赖 () · yum install gcc · yum install pcre-devel · yum install zlib zlib-devel · yum install openssl openssl-devel · //一键安装上面四个依赖 · yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel 下载 nginx 的 tar 包 · //创建一个文件夹 · cd /usr/local · mkdir nginx · cd nginx · //下载tar包 . wget http://nginx.org/download/nginx-1.13.7.tar.gz .//解压tar包 tar -zxvf nginx-1.13.7.tar.gz 安装 nginx( 如果 configure 报 xx not found 就在后面加 with-xx=路径 ) · //进入nginx目录 · cd /usr/local/nginx · //执行配置命令 注意:--with-http_ssl_module 开启SSL模块,支持Https请求 · ./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/nginx/sbin

“Untar” file on iPhone

放肆的年华 提交于 2020-01-21 02:59:26
问题 I'm writing an iPhone app which downloads a tar-gzipped file from a Webserver, then needs to unarchive this file so that it can be copied into the app's Documents folder. I'm using tar/gzip because I want to download a whole bunch of small files in one HTTP request, to make everything nice and fast. I've investigated solutions like http://www.feep.net/libtar/, but as a C/Objective-C newb, I can't get any of them to compile for the iPhone platform. (I felt like I should just be able to do a