perl

[转帖]CENTOS6.6下mysql5.7.11带boost和不带boost的源码安装

☆樱花仙子☆ 提交于 2021-01-08 20:17:53
CENTOS6.6下mysql5.7.11带boost和不带boost的源码安装 本文来自我的github pages博客http: // galengao.github.io/ 即www.gaohuirong.cn https: // www.cnblogs.com/galengao/p/5755788.html 高手的blog Mysql5.7版本更新后有很多变化,比如json等,连安装都有变化,他安装必须要BOOST库,不过mysql的官网源码有带boost库的源码和不带boost库的源码两种,因此有两种安装方式,其实都是一样的,仅仅是不带boost库源码的需要单独安装boost,还有后续文章percona-xtrabackup需要用到boost库 下载软件 到usr/local目录下: cd /usr/local wget http://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz wget http://cdn.mysql.com//Downloads/MySQL-5.7/mysql-boost-5.7.11.tar.gz wget http://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.11.tar.gz 安装boost 注

源码编译安装部署LAMP平台(使用Apache,MySQL与PHP搭建Discuz论坛实例)

断了今生、忘了曾经 提交于 2021-01-07 14:44:33
文章目录 一、LAMP平台与编译安装 (一)、LAMP平台概述 (二)、构建LAMP平台顺序 (二)、编译安装的优点 (三)、各组件的主要作用 二、部署步骤 (一)、编译安装Apache httpd服务 (二)、编译安装mysqld 服务 (三)、编译安装PHP 解析环境 (四)、Discuz论坛安装 三、实例演示 (一)、部署Apache服务 (二)、部署MySQL (三)、安装PHP服务 (四)、安装论坛 一、LAMP平台与编译安装 (一)、LAMP平台概述 LAMP架构是目前成熟的企业网站应用模式之一,指的是协同工作的一整台系统和相关软件,能够提供动态web站点服务及其应用开发环境 LAMP是一个缩写词,具体包括Linux操作系统,Apache网站服务器,MySQL数据库服务器,PHP(或perl,Python)网页编程语言 (二)、构建LAMP平台顺序 在构建LAMP平台时,各组件的安装顺序依次为Linux,Apache,MySQL,PHP 其中Apache和MySQL的安装并没有严格的顺序要求,而PHP环境的安装一般放到最后,负责沟通web服务器和数据库系统以协同工作 (二)、编译安装的优点 1、具有较大的自由度,功能可定制 2、可及时获得最新的软件版本 3、普遍适用于大多数Linux版本,便于一直使用 (三)、各组件的主要作用 (平台)Linux:作为LAMP架构的基础

图解Qt安装(Windows平台)

ε祈祈猫儿з 提交于 2021-01-07 05:35:11
http://c.biancheng.net/view/3858.html 本节介绍 Qt 5.9.0 在 Windows 平台下的安装,请提前下载好 Qt 5.9.0。不知道如何下载 Qt 的读者请转到: Qt下载(多种下载通道+所有版本) 目前较高版本的 Qt 仅支持 Win7 及其以后的操作系统,不支持 Win XP;使用 Win XP 的读者请安装 Qt 5.5.1 之前的版本。 Qt 占用的存储空间很大,安装之前建议先准备好 8GB 以上的磁盘空间。对于目前 Qt 最新版开发环境,如果不安装源代码包,实际占用大约 5.5GB;如果选择安装源码包,大约占用 7.5GB。 双击下载得到的 qt-opensource-windows-x86-5.9.0.exe 即可开始安装。Qt 的安装过程和普通的 Windows 软件一样,按照向导进行操作即可。    关于 Qt 的安装需要说明以下几点。 1) 注册和登录 Qt 在安装过程中会提示用户进行注册和登录,不用理会,跳过(Skip)即可,实际开发时不需要登录。 图1:Qt 安装过程中提示用户注册 2) 安装路径和关联文件 图2:指定 Qt 安装路径 Qt 允许用户自定义安装路径,但是请注意,安装路径不能带空格、中文字符或者其它任何特殊字符。 另外,该界面还会询问是否关联特定的文件类型。如果关联(默认是关联的),特定后缀的文件(包括

concatenating hierarchical paths from the root

我的梦境 提交于 2021-01-05 07:22:05
问题 I have an address file that is like below $ cat hier.dat /City-A/Streetx/House1,100 /City-B/Streety/House2,200 $ I need to generate more lines by expanding the hierarchy from the beginning. The required output is /City-A,100 /City-A/Streetx,100 /City-A/Streetx/House1,100 /City-B,200 /City-B/Streety,200 /City-B/Streety/House2,200 The below perl command looks logically correct but it is not giving the correct results $ perl -F, -lane ' $s=""; while($F[0]=~/\G\/.+?\//g) {$s.=$&; print $s.",".$F

Does Devel::Peek exist as a standalone Perl module?

家住魔仙堡 提交于 2021-01-05 07:04:49
问题 I have a clean install of perl 5.26.3, and I am trying to install Dancer2. Dancer2 depends on App::Cmd::Setup, which depends on Getopt::Long::Descriptive, which depends on Params::Validate, which depends on Devel::Peek. Looking at Devel::Peek on MetaCPAN, it is part of the perl 5.30.2 distribution, and I can not find the Devel::Peek package by itself. The "Jump to version" list on the Devel::Peek page lists previous version of perl, not of Devel::Peek. Installing Dancer2 on perl 5.26.3

Why CPU-side version SDL_FillRect up to 7 times faster in compare GPU-side version SDL_RenderFillRect?

一个人想着一个人 提交于 2021-01-05 06:38:59
问题 Here I have asked what is the difference between SDL_FillRect and SDL_RenderFillRect Here is code of my benchmark: my $window = SDL2::Video::SDL_CreateWindow( 'Hello', 100, 100, 800, 600, 0x00000004 ); my $surface = SDL2::Video::SDL_GetWindowSurface( $window ); my $render = SDL2::Render::SDL_GetRenderer( $window ); SDL2::Render::SDL_SetRenderDrawColor( $render, 0, 0, 255, 255 ); use Benchmark ':all'; my $rect1 = SDL2::Rect->new({ x => 10, y => 10, h => 50, w => 50 }); timethese( 1000000, {

Why CPU-side version SDL_FillRect up to 7 times faster in compare GPU-side version SDL_RenderFillRect?

安稳与你 提交于 2021-01-05 06:37:49
问题 Here I have asked what is the difference between SDL_FillRect and SDL_RenderFillRect Here is code of my benchmark: my $window = SDL2::Video::SDL_CreateWindow( 'Hello', 100, 100, 800, 600, 0x00000004 ); my $surface = SDL2::Video::SDL_GetWindowSurface( $window ); my $render = SDL2::Render::SDL_GetRenderer( $window ); SDL2::Render::SDL_SetRenderDrawColor( $render, 0, 0, 255, 255 ); use Benchmark ':all'; my $rect1 = SDL2::Rect->new({ x => 10, y => 10, h => 50, w => 50 }); timethese( 1000000, {

how to access variables in imported module in local scope in perl?

南笙酒味 提交于 2021-01-04 03:10:11
问题 I am stuck while creating a perl Moose module. I have a global pm module. package XYZ; require Exporter; our @ISA = qw(Exporter); ## EDIT missed this line our @EXPORT_OK = qw($VAR); my $VAR1 = 1; our $VAR = {'XYZ' => $VAR1}; 1; I want to get $VAR in a Moose module I'm creating package THIS; use Moose; use YAML::XS; sub get_all_blocks{ my ($self) = @_; require $self->get_pkg(); # this returns the full path+name of the above package # i cannot use use lib+use since the get_pkg starts

how to access variables in imported module in local scope in perl?

隐身守侯 提交于 2021-01-04 03:05:42
问题 I am stuck while creating a perl Moose module. I have a global pm module. package XYZ; require Exporter; our @ISA = qw(Exporter); ## EDIT missed this line our @EXPORT_OK = qw($VAR); my $VAR1 = 1; our $VAR = {'XYZ' => $VAR1}; 1; I want to get $VAR in a Moose module I'm creating package THIS; use Moose; use YAML::XS; sub get_all_blocks{ my ($self) = @_; require $self->get_pkg(); # this returns the full path+name of the above package # i cannot use use lib+use since the get_pkg starts

How to search a file for the last block of consecutive lines that contain a keyword in Perl

北城余情 提交于 2021-01-03 06:20:38
问题 Imagine a text file like below where <some random text> could be anything or nothing , implying the KEYWORD can appear anywhere in the line, alone or along with other text: 1 <some random text> 2 <some random text>KEYWORD<some random text> 3 <some random text>KEYWORD<some random text> 4 <some random text> 5 <some random text> 6 <some random text>KEYWORD<some random text> 7 <some random text> 8 <some random text>KEYWORD<some random text> 9 <some random text>KEYWORD<some random text> 10 <some