Compiling and installing FASTDFS and its PHP extensions on OSX 10.9.4

Source: Internet
Author: User

After I tested, installing Fastdfs V5.01 on OSX 10.9.4 would be tragic, unable to install at first, and encountering the issue in this post: http://www.oschina.net/question/252582_162768 And I still can not solve, look OSX on no ldconfig this east, anyway I do not understand Linux and Unix such systems.

So had to retreat and beg second, an old version to use, after all I just to install fastdfs PHP extension, in order to develop PHP project on Mac, and the real FASTDFS simulation server environment is on another Lenovo Win7 on the CentOS6.5 of the virtual machine.

Installing Fastdfs

Download fastdfs_v4.06.tar.gz
Unzip into the Fastdfs directory:

Tar xzvf fastdfs_v4.06.tar.gz CD Fastdfs

Then install

./make.sh./make.sh Install

If an error is encountered during the installation

Meet ERROR:LN:/usr/lib64/libfastcommon.so:no such file or Directoryln:/usr/lib64/libfdfsclient.so:no such file or dire Ctorymake: * * * [install] Error 1

The solution is:

Create the/usr/lib64 directory first, and then code on top of/usr/include/sys/errno.h:

#define ENONET */Machine was not on the network */

OK, just reinstall it.


Installing fastdfs_client PHP Extensions

Go to the PHP client directory

CD php_client/

Then compile the installation

Phpize./configure--with-php-config=/usr/bin/php-configmakemake Install

Ps:/usr/bin/php-config path changes according to your actual situation

After success, you will be prompted:

Installing Shared extensions:/usr/lib/php/extensions/no-debug-non-zts-20100525/

Modify PHP config file to open/etc/php.ini

Copy the Fastdfs_client.ini content from the Php_client folder in the Fastdfs unpacking package to the end of the php.ini and save it.

Open the/etc/fdfs/client.conf configuration file, edit the Base_path and tracker_server for your own values.

Base_path can not find a place to build a folder, and then give the path to Base_path. such as: base_path=/fdfs/client

The tracker_server is the IP and port of the tracker server. such as: tracker_server=192.168.1.201:22122

Finally restart Apache,phpinfo () or terminal php-m view, you can see fastdfs_client installed.

Finally, the above operation if prompted without permission, please re-command the front plus sudo !!!!!!!

艹! 5.01 Toss me dead.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.