01.06.2020»»понедельник

User Ld_library_path Mac Os

01.06.2020
    1 - Comments

2010-12-1  待研究),在编译安装protobuff后,要配置DYLDLIBRARYPATH环境变量,这是个啥,与Linux下的LDLIBRARYPATH相同吗,对Mac OS还是了解太少啊,查了一些Apple的开发网站,对这个变量定义如下,在此记之,以待后查。 DYLDLIBRARYPATH. 2017-3-3  I tried to import GPU Tensorflow; it failed to find the CUDA libraries. I checked the process.env environment variable and found that LDLIBRARYPATH and DYLDLIBRARYPATH had not been added. After further digging, I found that the shell-env package doesn't import them because it just calls the env command, which doesn't include them in its output for some reason. 2020-3-10  After you have installed ACE, you need to make sure Qt4 is installed on your system if you plan on using the Graphical User Interfaces provided with the framework. If Qt is not present, you need to install it. The development package of Qt is required. 2020-4-6  Setting Environmental Variables in Mac OS X Command Line. Because the Mac defaults to using bash shell, you can set environmental variables in the user directories.bashprofile, for an active user account the path to that file is locate at. As you've noted, DYLDLIBRARYPATH behaves like LDLIBRARYPATH on other.nix. However, there is another environment variable you should look at called DYLDFALLBACKLIBRARYPATH. In general, these are (both on osx and linux) suggested only for development use as they can cause symbol lookup errors when you override with a library that does not have the same symbol table.

If you intend to use PHP and other tools provided by Zend Server (pear and pecl) from the command line (PHP CLI), it is recommended that you add the <install_path>/bin directory to your $PATH environment variable.

This can be done in two ways:

  • Per user profile
  • For all users

The following procedure is intended for use with bash. If you are using a different shell, adjust the procedure accordingly.

To add the <install_path>/bin directory to your $PATH environment variable per user profile, issue the following command:

echo 'export PATH=$PATH:/usr/local/zend/bin' >> $HOME/.bashrc

To add the Zend Server library path, issue the following command:

echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib' >> $HOME/.bashrc

You can now run the PHP binary provided by Zend Server without typing its full path.

To add the <install_path>/bin directory to your $PATH environment variable for all users, issue the following command:

echo 'export PATH=$PATH:/usr/local/zend/bin' >> /etc/profile.d/zend-server.sh

To add the Zend Server library path, issue the following command:

echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib' >> /etc/profile.d/zend-server.sh

You can now run the PHP binary provided by Zend Server without typing its full path.

因为Mac OS X上的bash是通过login的方式运行的,而man bash中写着,通过login方式登录的bash不会读取~/.bashrc。

解决方法:把上面的代码 添加到 ~/.bash_profile中。

Mac how to get to library sierra. echo source ~/.bashrc >> ~/.bash_profile

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib

echo 'xxxxx' sudo -S /usr/local/zend/bin/zendctl.sh start

sudo /usr/local/zend/mysql/bin/mysql.server start

sudo /usr/local/zend/mysql/bin/mysql.server start

Win 10 Path

sudo /Library/StartupItems/ZendServer_init/ZendServer_init start

sudo /Library/StartupItems/MySql_init/MySql_init start

mysql 配置在 /usr/local/zend/mysql/data/my.cnf

-----------------------------

修改数据库存储位置

mkdir -p /Volumes/Opt/Var/mysql

mv /usr/local/zend/mysql/data/my.cnf /Volumes/Opt/Var/mysql/

sudo scripts/mysql_install_db --user=zend --datadir=/Volumes/Opt/Var/mysql --basedir=/usr/local/zend/mysql --defaults-file=/Volumes/Opt/Var/mysql/my.cnf

vi /usr/local/zend/mysql/bin/mysql.server

Ld_library_path Macos

Ld_library_path

修改datadir = '/Volumes/Opt/Var/mysql'

/usr/local/zend/mysql/bin/mysql.server start

由于mac10.10 已经取消了startitem启动。。所以不能自启动

User Ld_library_path Mac Os

/Library/StartupItems/MySql_init

/Library/StartupItems/ZendServer_init

参照 : http://pikeralpha.wordpress.com/2014/06/12/yosemite-dp1-removes-systemstarter/

posted @ 2014-08-06 22:12zhepama 阅读(..) 评论(..) 编辑收藏