centos65 compile mcrypt
Download php source code to compile
<code>cd php/ext/mcrypt phpize <span>error</span>: No <span>package</span> libmcrypt available. No <span>package</span> libmcrypt-devel available. No <span>package</span> mcrypt available. No <span>package</span> mhash available. yum install epel-release //扩展包更新包 yum update //更新yum源 yum install libmcrypt libmcrypt-devel mcrypt mhash 就ok了 ./configure <span>error</span> /Downloads/php-<span>5.5</span><span>.31</span>/ext/mcrypt/mcrypt.c:<span>283</span>: 错误:‘PHP_FE_END’未声明(不在函数内)</code>
Solution
<code><span>sed</span> -i <span>'s|PHP_FE_END|{NULL,NULL,NULL}|'</span> ./<span>*.c</span>sed -i <span>'s|ZEND_MOD_END|{NULL,NULL,NULL}|'</span> ./<span>*.c</span></code>
Next step:
<code>./configure <span>make</span><span>make</span> test <span>// 可以省略</span> sudo <span>make</span> install</code>
Next step:
After make install, we will see mcrypt.so in /usr/lib64/php/modules/
<code> cd /etc/php<span>.d</span>/ sudo vi mcrypt<span>.ini</span> extension=mcrypt<span>.so</span></code>
Restart apache to see the effect
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });The above introduces centos65 compilation of mcrypt, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



How to replace mcrypt with php: 1. Open the corresponding php file; 2. Find the original encryption and decryption code; 3. Use the "openssl_encrypt" and "openssl_decrypt" methods to replace it.

The difference between null and NULL in C language is: null is a macro definition in C language, usually used to represent a null pointer, which can be used to initialize pointer variables, or to determine whether the pointer is null in a conditional statement; NULL is a macro definition in C language A predefined constant in , usually used to represent a null value, used to represent a null pointer, null pointer array or null structure pointer.

In JavaScript, both undefined and null represent the concept of "nothing": 1. undefined represents an uninitialized variable or a non-existent property. When a variable is declared but no value is assigned to it, the value of the variable is undefined , when accessing properties that do not exist in the object, the returned value is also undefined; 2. null represents an empty object reference. In some cases, the object reference can be set to null to release the memory it occupies.

Both null and undefined indicate a lack of value or an undefined state. Depending on the usage scenario, there are some guiding principles for choosing to use null or undefined: 1. When you need to clearly indicate that a variable is empty or invalid, you can use null; 2. When a variable has been declared but not yet assigned a value, it will be set to undefined by default; 3. When you need to check whether a variable is empty or undefined, use the strict equality operator "===" to determine whether the variable is null or undefined. .

The difference between null and undefined is: 1. Semantic meaning; 2. Usage scenarios; 3. Comparison with other values; 4. Relationship with global variables; 5. Relationship with function parameters; 6. Nullability check; 7. Performance considerations; 8. Performance in JSON serialization; 9. Relationship with types. Detailed introduction: 1. Semantic meaning, null usually means knowing that this variable will not have any valid object value, while undefined usually means that the variable has not been assigned a value, or the object does not have this attribute; 2. Usage scenarios, etc.

Usage: 1. Initialize the reference type variable to null, indicating that the variable does not currently point to any object; 2. Set the reference type variable to null, which can release the memory space of the object referenced by the variable and help the garbage collector to recover This object; 3. Use null to check whether a reference is empty. You can avoid the occurrence of NullPointerException by judging whether the reference is null. 4. Use null in conditional judgment to judge whether a reference is empty.

1. Classpath (classpath) When you install Java with great hope, and then write helloworld excitedly, then compile and run, just waiting for those two beautiful words to appear in front of you, but unfortunately, only Saw Can'tfindclassHelloWorld or Exceptioninthread "main"java.lang.NoSuchMethodError: maain. Why? The compiled class is obviously there. Let’s take a look at the running process of the java program. We already know that java is solved through the java virtual machine.

What is a package? A package is a way of organizing classes. The main purpose of using a package is to ensure the uniqueness of the class. For example, you write a Test class in your code. Then your colleagues may also write a Test class. If there are two classes with the same name, there will be a conflict, causing the code to fail to compile. 1. Import the classes in the package. Java has provided many ready-made classes for us to use ①: For example, printing an array: publicclassTestDemo{publicstaticvoidmain(String[]args ){int[]array={1,2,3,4,5};System.out.println(Arrays.toStr
