锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久婷婷五月综合97色直播,久久久噜噜噜www成人网,久久婷婷五月综合国产尤物apphttp://www.shnenglu.com/Error/category/21141.htmlzh-cnFri, 10 Mar 2017 20:05:11 GMTFri, 10 Mar 2017 20:05:11 GMT60ubuntu-16.4 php5 phpmyadmin wordpresshttp://www.shnenglu.com/Error/archive/2017/03/10/214745.htmlEnicEnicFri, 10 Mar 2017 06:13:00 GMThttp://www.shnenglu.com/Error/archive/2017/03/10/214745.htmlhttp://www.shnenglu.com/Error/comments/214745.htmlhttp://www.shnenglu.com/Error/archive/2017/03/10/214745.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/214745.htmlhttp://www.shnenglu.com/Error/services/trackbacks/214745.htmlapt-get install mysql-server
apt-get install apache2
apt-get install php5
apt-get install php5-mysql
apt-get install php5-gd
apt-search php5
apt-get install libapache2-mod-php5.6
apt-get install libapache2-mod-auth-mysql
apt-get install openjdk
sudo apt-get purge openjdk/openjdk
apt-get install python-software-properties
apt-get install software-properties-common
apt-get install -y language-pack-en-base
LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
add-apt-repository ppa:ondrej/php
apt-get update
apt-cache search php5
apt-get install php5.5-common
apt-get install libapache2-mod-php5.5
apt-get install php5.6
apt-get install php5.6-mysql
apt-get install php5.6-gd
apt-get install php7.1-mcrypt
apt-get install php-mbstring
apt-get install php7.1-mbstring
lsof -i:80   鏉冮檺鏌ヨ
/etc/init.d/apache2 restart
netstat -tupln
/etc/apache2/ports.conf
vi /etc/apache2/sites-enabled/000-default.conf  淇敼榛樿绔欑偣鐨剅oot璺緞
sudo apt-get install phpmyadmin
ln -s /usr/share/phpmyadmin
sudo apt-get install wordpress
ln -s /usr/share/wordpress
cp wp-config-sample.php wp-config.php
vi wp-config.php
mysql: create database WordPress
ls /usr/share
ls /var/www/
WordPress


Enic 2017-03-10 14:13 鍙戣〃璇勮
]]>
浣跨敤CMake GCC鍜孋lang鐨? LLVM涔嬮棿鍒囨崲錛堣漿錛?/title><link>http://www.shnenglu.com/Error/archive/2015/08/20/211618.html</link><dc:creator>Enic</dc:creator><author>Enic</author><pubDate>Thu, 20 Aug 2015 03:52:00 GMT</pubDate><guid>http://www.shnenglu.com/Error/archive/2015/08/20/211618.html</guid><wfw:comment>http://www.shnenglu.com/Error/comments/211618.html</wfw:comment><comments>http://www.shnenglu.com/Error/archive/2015/08/20/211618.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/Error/comments/commentRss/211618.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/Error/services/trackbacks/211618.html</trackback:ping><description><![CDATA[<h1>浣跨敤CMake GCC鍜孋lang鐨? LLVM涔嬮棿鍒囨崲</h1><div bdshare-button-style0-16"="" data-bd-bind="1440042635441" style="zoom: 1; color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;"><a data-cmd="more" style="color: #333333; text-decoration: none; float: left; padding-left: 17px; line-height: 16px; height: 16px; cursor: pointer; margin: 6px 6px 6px 0px; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_0_16.png?v=d754dcc0.png); background-position: 0px 0px; background-repeat: no-repeat;"></a><a data-cmd="qzone" title="鍒嗕韓鍒癚Q絀洪棿" style="color: #3e62a6; text-decoration: none; float: left; padding-left: 17px; line-height: 16px; height: 16px; cursor: pointer; margin: 6px 6px 6px 0px; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_0_16.png?v=d754dcc0.png); background-position: 0px -52px; background-repeat: no-repeat;"></a><a data-cmd="tsina" title="鍒嗕韓鍒版柊嫻井鍗? style="color: #3e62a6; text-decoration: none; float: left; padding-left: 17px; line-height: 16px; height: 16px; cursor: pointer; margin: 6px 6px 6px 0px; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_0_16.png?v=d754dcc0.png); background-position: 0px -104px; background-repeat: no-repeat;"></a><a data-cmd="tqq" title="鍒嗕韓鍒拌吘璁井鍗? style="color: #3e62a6; text-decoration: none; float: left; padding-left: 17px; line-height: 16px; height: 16px; cursor: pointer; margin: 6px 6px 6px 0px; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_0_16.png?v=d754dcc0.png); background-position: 0px -260px; background-repeat: no-repeat;"></a><a data-cmd="renren" title="鍒嗕韓鍒頒漢浜虹綉" style="color: #3e62a6; text-decoration: none; float: left; padding-left: 17px; line-height: 16px; height: 16px; cursor: pointer; margin: 6px 6px 6px 0px; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_0_16.png?v=d754dcc0.png); background-position: 0px -208px; background-repeat: no-repeat;"></a></div><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;"><a style="color: #3e62a6; text-decoration: none; line-height: 2; font-size: 8pt; margin: 2px 2px 2px 0px; padding: 2px 4px; white-space: nowrap; background-color: #d9ecff;">cmake</a> <a style="color: #3e62a6; text-decoration: none; line-height: 2; font-size: 8pt; margin: 2px 2px 2px 0px; padding: 2px 4px; white-space: nowrap; background-color: #d9ecff;">llvm</a> <a style="color: #3e62a6; text-decoration: none; line-height: 2; font-size: 8pt; margin: 2px 2px 2px 0px; padding: 2px 4px; white-space: nowrap; background-color: #d9ecff;">clang</a></span><br style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;" /><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鎴戝叕鍙告嫢鏈変竴鎵歸」鐩殑CMake鐨勶紝鎴戝笇鏈涜兘澶熸柟渚垮湴鍒囨崲GCC鎴栭摏/ LLVM浠栦滑銆傛垜鐩鎬俊錛堣濡傛灉鎴戦敊浜嗭紒錛夎〃紺洪數鎴戦渶瑕佽繘琛屽涓嬭緗細</span><pre style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;"><code> SET (CMAKE_C_COMPILER "/usr/bin/clang") SET (CMAKE_C_FLAGS "-Wall -std=c99") SET (CMAKE_C_FLAGS_DEBUG "-g") SET (CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG") SET (CMAKE_C_FLAGS_RELEASE "-O4 -DNDEBUG") SET (CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") SET (CMAKE_CXX_COMPILER "/usr/bin/clang++") SET (CMAKE_CXX_FLAGS "-Wall") SET (CMAKE_CXX_FLAGS_DEBUG "-g") SET (CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG") SET (CMAKE_CXX_FLAGS_RELEASE "-O4 -DNDEBUG") SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") SET (CMAKE_AR "/usr/bin/llvm-ar") SET (CMAKE_LINKER "/usr/bin/llvm-ld") SET (CMAKE_NM "/usr/bin/llvm-nm") SET (CMAKE_OBJDUMP "/usr/bin/llvm-objdump") SET (CMAKE_RANLIB "/usr/bin/llvm-ranlib") </code></pre><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鏄惁鏈夎繖浜涘拰榛樿鐨凣CC鍙橀噺涔嬮棿鐨勫垏鎹紝鏈濂芥槸鍏ㄧ郴緇熺殑鍙樺寲錛岃屼笉鏄叿浣撶殑欏圭洰錛堝嵆涓嶅彧鏄皢瀹冧滑娣誨姞鍒伴」鐩殑鐨凜MakeLists.txt錛変竴涓畝鍗曠殑鏂規硶錛?鍙﹀錛屾槸鍚︽湁蹇呰鐨?/span><code style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;">llvm-*</code><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鑺傜洰閾涚殑gcc鏃朵唬鏇匡紝鑰屼笉鏄郴緇熼粯璁ゅ鹼紵鏈変粈涔堝尯鍒紵</span><br style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;" /><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鏈枃鍦板潃 錛欳odeGo.net/340772/ </span><br style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;" /><div class="qe4sqk8" id="BAIDU_DUP_wrapper_972677_0" style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;"><iframe id="cproIframe_972677_3" width="640" height="60" src="http://cb.baidu.com/ecom?adn=3&at=38&aurl=&cad=1&ccd=24&cec=UTF-8&cfv=18&ch=0&col=zh-CN&conOP=0&cpa=1&dai=3&dis=0&ltr=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3D-65vOIyEPEyN6wGVGEOvcqiNgIbj9PcX6iS3msA-T7lu9s4joaHjBn_LYCAapVos%26wd%3D%26eqid%3Dd613164b000165fe0000000355d54e88&ltu=http%3A%2F%2Fcodego.net%2F340772%2F&lunum=6&n=binfenkeji2010_cpr&pcs=1920x969&pis=10000x10000&ps=-1x-1&psr=1920x1080&pss=1920x0&qn=79827666056fed76&rad=&rs=301&rsi0=640&rsi1=60&rsi5=4&rss0=%23FFFFFF&rss1=%23FFFFFF&rss2=%230000ff&rss3=%23444444&rss4=%23008000&rss5=&rss6=%23e10900&rss7=&scale=&skin=&td_id=9223372032564535439&tn=text_default_640_60&tpr=1440042634669&ts=1&version=2.0&xuanting=0&dtm=BAIDU_DUP2_SETJSONADSLOT&dc=2&di=972677&ti=%E4%BD%BF%E7%94%A8CMake%20GCC%E5%92%8CClang%E7%9A%84%2F%20LLVM%E4%B9%8B%E9%97%B4%E5%88%87%E6%8D%A2-cmake%2Cllvm%2Cclang-CodeGo.net&tt=1440042634652.18.-1440042634652.409" align="center,center" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" allowtransparency="true"></iframe></div><span style="color: #bbddff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">------------------------------------------------------------------------------------------------------------------------- </span><br style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;" /><span style="font-size: 12px; font-style: italic; font-weight: bold; margin-right: 5px; color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 24px; background-color: #ffffff;">1. </span><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">CMake鐨勮崳瑾夌殑鍙橀噺</span><code style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;">CC</code><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鍜?/span><code style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;">CXX</code><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鍦ㄦ嫻嬪埌C鍜孋 ++緙栬瘧鍣?/span><pre style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;"><code>$ export CC=/usr/bin/clang $ export CXX=/usr/bin/clang++ $ cmake .. -- The C compiler identification is Clang -- The CXX compiler identification is Clang </code></pre><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鍏蜂綋鏍囧織鍙互閫氳繃灝嗗畠浠斁鍏ヤ竴涓郴緇熻寖鍥寸殑CMake鏂囦歡騫舵寚鍚慍MAKE_USER_MAKE_RULES_OVERRIDE鍙橀噺錛屽畠琚鐩栥傚垱寤轟竴涓枃浠?/span><code style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;">~/ClangOverrides.txt</code><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鍏跺唴瀹瑰涓嬶細</span><pre style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;"><code>SET (CMAKE_C_FLAGS_INIT "-Wall -std=c99") SET (CMAKE_C_FLAGS_DEBUG_INIT "-g") SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG") SET (CMAKE_C_FLAGS_RELEASE_INIT "-O4 -DNDEBUG") SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-O2 -g") SET (CMAKE_CXX_FLAGS_INIT "-Wall") SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-g") SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG") SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O4 -DNDEBUG") SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2 -g") </code></pre><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鍚庣紑_init浼氳CMake鐨勫垵濮嬪寲鐩稿簲鐨?/span><code style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;">*_FLAGS</code><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鍙橀噺涓庣粰瀹氱殑鍊箋傜劧鍚庤皟鐢╟make鐨勪互涓嬮潰鐨勬柟寮忥細</span><pre style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;"><code>$ cmake -DCMAKE_USER_MAKE_RULES_OVERRIDE=~/ClangOverrides.txt .. </code></pre><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">緇堜簬鍒頒簡LLVM鐨刡inutils鍔涳紝璁劇疆鍐呴儴鍙橀噺</span><code style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;">_CMAKE_TOOLCHAIN_PREFIX</code><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">銆傝繖涓彉閲忔槸鐢辮崳騫?/span><code style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;">CMakeFindBinUtils</code><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">妯″潡錛?/span><pre style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;"><code>$ cmake -D_CMAKE_TOOLCHAIN_PREFIX=llvm- .. </code></pre><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鎶婅繖涓斁鍦ㄤ竴璧蜂綘鍙互鍐欎竴涓猻hell鍖呰瀹冭緗簡鍙橀噺</span><code style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;">CC</code><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鍜?/span><code style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;">CXX</code><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鐒跺悗璋冪敤cmake鐨勫彲鍙樿鐩栥?nbsp;</span><br style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;" /><span style="font-size: 12px; font-style: italic; font-weight: bold; margin-right: 5px; color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 24px; background-color: #ffffff;">2. </span><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鍏ㄧ郴緇熺殑C ++鐨勫彉鍖栧Ubuntu鐨勶細 sudo鐢╱pdate-alternatives-閰嶇疆C ++ 灝嗘墦鍗版槸榪欐牱鐨勶細</span><pre style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;"><code> Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/bin/g++ 20 auto mode 1 /usr/bin/clang++ 10 manual mode 2 /usr/bin/g++ 20 manual mode </code></pre><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鐒跺悗錛屽彧闇閫夋嫨閾?+銆?nbsp;</span><br style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;" /><span style="font-size: 12px; font-style: italic; font-weight: bold; margin-right: 5px; color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 24px; background-color: #ffffff;">3. </span><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">浣犵殑</span><pre style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;"><code>option(USE_CLANG "build application with clang" OFF) # OFF is the default </code></pre><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鐒跺悗鍦ㄥ寘瑁瑰鏋滐紙錛塖涓殑璁劇疆錛?/span><pre style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;"><code>if(USE_CLANG) SET (...) .... endif(USE_CLANG) </code></pre><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">榪欐牱錛屽畠浼氭樉紺轟負鍦℅UI閰嶇疆宸ュ叿鐨刢make鐨勯夐」銆?涓轟簡璁╂偍鍦ㄦ暣涓郴緇熷彲浠ュ湪鍙橀噺鐨勯粯璁ゅ兼垨淇濇寔涓庣瓟妗堛?nbsp;</span><br style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;" /><span style="font-size: 12px; font-style: italic; font-weight: bold; margin-right: 5px; color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 24px; background-color: #ffffff;">4. </span><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">浣犵粷瀵逛笉闇瑕佷笉鍚岀殑LLVM-AR絳夌▼搴忥細</span><pre style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;"><code>SET (CMAKE_AR "/usr/bin/llvm-ar") SET (CMAKE_LINKER "/usr/bin/llvm-ld") SET (CMAKE_NM "/usr/bin/llvm-nm") SET (CMAKE_OBJDUMP "/usr/bin/llvm-objdump") SET (CMAKE_RANLIB "/usr/bin/llvm-ranlib") </code></pre><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">榪欎簺閮芥槸涓轟簡宸ヤ綔錛屽LLVM鍐呴儴鏍煎紡錛屽洜姝ら樋浠?鍒版偍鐨勫簲鐢ㄧ▼搴忕殑鐢熸垚銆?浣滀負涓涓鏄?CodeGo.net錛孫4灝嗗湪浣犵殑紼嬪簭璋冪敤鐨凩TO錛屼綘鍙兘涓嶅笇鏈涳紙榪欐牱浼氬ぇ澶э級鍜岄摏榛樿涓篊99妯″紡錛屼嬌鏍囧織涓嶆槸蹇呴渶鐨勪袱縐嶃?nbsp;</span><br style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;" /><span style="font-size: 12px; font-style: italic; font-weight: bold; margin-right: 5px; color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 24px; background-color: #ffffff;">5. </span><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">浣犵殑璇硶錛?/span><code style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;">$ENV{environment-variable}</code><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鍦ㄤ綘鐨?/span><code style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;">CMakeLists.txt</code><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">璁塊棶鍙橀噺銆備綘鍙互閫傚綋鍦板垱寤轟竴涓垵濮嬪寲鐨勫彉閲忛泦鐨勮剼鏈紝鍙槸鍦ㄥ紩鐢ㄨ繖浜涘彉閲忕殑</span><code style="color: #666666; font-size: 12px; line-height: 24px; background-color: #ffffff;">CMakeLists.txt</code><span style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; background-color: #ffffff;">鏂囦歡銆?/span><img src ="http://www.shnenglu.com/Error/aggbug/211618.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/Error/" target="_blank">Enic</a> 2015-08-20 11:52 <a href="http://www.shnenglu.com/Error/archive/2015/08/20/211618.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>linux so 鍔犺澆 緙栬瘧 璺緞 欏哄簭 絳夛紙杞?姹囨伙級http://www.shnenglu.com/Error/archive/2015/08/18/211596.htmlEnicEnicTue, 18 Aug 2015 09:42:00 GMThttp://www.shnenglu.com/Error/archive/2015/08/18/211596.htmlhttp://www.shnenglu.com/Error/comments/211596.htmlhttp://www.shnenglu.com/Error/archive/2015/08/18/211596.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/211596.htmlhttp://www.shnenglu.com/Error/services/trackbacks/211596.html榪愯鏃朵嬌鐢ㄩ潪鏍囧噯浣嶇疆/usr/lib鍜?lib涓嬬殑搴撶殑鏂瑰紡鏈変笁縐嶏細
(1) 璁劇疆$LD_LIBRARY_PATH=搴撴墍鍦ㄧ洰褰曪紙澶氫釜鐩綍鐢?鍒嗛殧錛夛紝緋葷粺鍔犺澆宸ュ叿ld.so/ld-linux.so灝嗛『搴忔悳绱㈠彉閲忔寚瀹氱殑鐩綍銆備緥濡?$LD_LIBRARY_PATH=/usr/local/mysql/lib ./test_mysql
(2) 浠oot韜喚鎶婂簱璺緞鍔犲叆/etc/ld.so.conf鎴栧湪/etc/ld.so.conf.d涓垱寤虹壒瀹氱殑.conf鏂囦歡錛岀劧鍚庤繍琛宭dconfig鏇存柊/etc/ld.so.cache銆備緥濡傦細鍦?etc/ld.so.conf.d涓嬪垱寤烘枃浠秏ysql.conf鍐欏叆/usr/local/mysql/lib
(3) 鍙︿竴縐嶅姙娉曞氨鏄妸闇瑕佺殑搴揷opy鍒?usr/lib鎴?lib錛屼絾榪欎笉鏄緩璁殑鏂規硶錛岀壒鍒槸灝介噺閬垮厤copy鍙戝埌/lib銆備絾榪欑鏂規硶鍙互鍦ㄧ紪璇戞椂鍏嶅幓鐢?L閫夐」銆?br />


linux涓姩鎬侀摼鎺ュ簱鐨勬悳绱㈤『搴?/h2>

 (2008-12-23 10:03:20)
鏍囩錛?/span> 

鏉傝皥

linux涓姩鎬侀摼鎺ュ簱鐨勬悳绱㈤『搴?nbsp;
//
// by kirk,2008.11.21,鏂囦腑鏈塨ug璇鋒悶绱т笌鎴戣仈緋?-)
//   
  

    鍦ㄦ帴鎵嬩竴涓緢鍙よ佺殑紼嬪簭鏃訛紝鍙戠幇鍏舵墍浣跨敤鐨勫姩鎬佸簱閮藉疄鍦ㄦ槸澶檲鏃т簡錛屾寮忚繍琛岀幆澧冧腑閮ㄧ講鐨勫簱閮芥槸鐩擱傚簲鐨勶紝鑰岀洰鍓嶇殑寮鍙戞祴璇曠幆澧冧腑鍧囨槸閮ㄧ講鐨勬柊鐨勫崌綰х増鏈備負浜嗚兘鍦ㄨ繖浜涚幆澧冧笅寮鍙戞祴璇曪紝紼嬪簭寰楄兘鍦ㄨ嚜瀹氫箟鐨勮礬寰勯噷鏉ユ悳绱€傚洜姝ゅ湪榪欓噷澶嶄範涓涓媗inux涓▼搴忓鍔ㄦ侀摼鎺ュ簱鐨勬悳绱㈤『搴忥紝濡備笅鎵榪幫細

   1.棣栧厛鏌ョ湅紼嬪簭鏂囦歡鐨?dynamic 孌墊槸鍚﹀寘鍚簡涓涓彨DT_RPATH鐨勯」錛堝畠鏄竴涓互鍐掑彿鍒嗛殧鐨勫簱鏂囦歡鎼滅儲鐩綍鍒楄〃錛夈?/p>

銆銆銆鎬庝箞璁劇疆榪欎釜閫夐」錛?/p>

銆銆銆闇瑕佸湪緙栬瘧榪炴帴紼嬪簭鐨勬椂鍊欎嬌鐢?Wl,-rpath閫夐」錛屽亣璁句竴涓▼搴弔est闇瑕佷嬌鐢╨iblib.so搴擄紝濡備笅鎵紺鴻繘琛岀紪璇戣繛鎺ワ細

    

g++ -o test -L. -llib -Wl,rpath=./ test.cpp
 

     榪欐牱鍦ㄦ墽琛宼est紼嬪簭鏃訛紝test渚夸細鍏堝埌./鍗沖綋鍓嶇洰褰曚笅鏌ユ壘鎵闇瑕佺殑鍔ㄦ佸簱liblib.so

    2.鏌ユ壘鏄惁瀛樺湪鐜鍙橀噺 LD_LIBRARY_PATH錛堝畠鏄竴涓互鍐掑彿鍒嗛殧鐨勫簱鏂囦歡鎼滅儲鐩綍鍒楄〃錛夈?/p>

銆銆銆鎬庝箞璁劇疆榪欎釜閫夐」錛熷綋鐒舵槸璁劇疆linux涓嬬殑鐜鍙橀噺灝卞彲浠ヤ簡銆?/p>

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./
 

      褰撶劧錛岃繖縐嶆柟娉曟槸瀵瑰綋鍓嶇櫥褰曠敓鏁堢殑銆傚鏋滄兂寮鏈哄嵆鏈夋晥錛岃窡鍏跺畠鐜鍙橀噺鐨勮緗篃鏄竴鏍鳳紝闇瑕佷慨鏀逛竴浜涢厤緗枃浠躲?/p>

    3.鏌ョ湅搴撻珮閫熺紦瀛樻枃浠?/etc/ld.so.conf 錛屽畠鍖呭惈浜嗗簱鍚嶅拰璺緞鐨勪竴涓搴斿垪琛紝濡傛灉搴撳悕瀛樺湪錛岃繛鎺ュ櫒灝變嬌鐢ㄥ畠瀵瑰簲鐨勮礬寰勶紝鐢ㄨ繖涓煡鎵炬柟娉曡兘澶熸壘鍒板ぇ閮ㄥ垎鐨勫簱銆?/p>

銆銆銆鎬庝箞璁劇疆榪欎釜閫夐」錛熷彲浠ョ洿鎺ョ紪杈憀d.so.conf鍔犲叆闇瑕佹煡鎵劇殑璺緞錛屼篃鍙互鍦?etc/ld.so.conf.d鐩綍涓嬬殑宸辨湁鏂囦歡涓姞鍏ヨ礬寰勶紝鎴栬呭湪璇ョ洰褰曚笅鏂板緩涓涓枃浠訛紙鍚嶅瓧涓?.conf鍗沖彲錛夛紝鍐嶆妸闇瑕佺殑璺緞鍔犲叆鍒拌鏂囦歡涓傛渶鍚庢墽琛宭dconfig鍗沖彲鐢熸晥銆?/p>

    4.鏌ユ壘榛樿璺緞/lib鍜?usr/lib,

    濡傛灉緇忚繃浜嗕互涓婄殑姝ラ浠嶇劧鏌ユ壘澶辮觸錛屽垯灝嗘姤閿欏茍閫鍑虹浉鍏崇▼搴忋?/p>

    瀵逛簬鍓嶄笁涓楠ゆ潵璇達紝鎴戜滑鍧囨槸鍙互榪涜璁劇疆璋冩暣鐨勶紝鍏朵腑絎笁涓楠や腑鐨勮緗渶瑕乺oot鏉冮檺鎵嶈兘榪涜錛屼笖浼氬獎鍝嶆墍鏈夌殑紼嬪簭銆傚綋浣跨敤絎竴銆佺浜屼腑鐨勬柟娉曡繘琛屼簡璁劇疆璋冩暣鍚庯紝鎴戜滑渚垮彲浠ヤ嬌澶氱鐗堟湰鐨勫簱鍏卞瓨鍦ㄥ悓涓鐜涓嬭繘琛屾祴璇曪紝鍚屽悕涔熸棤鎵璋撱?br /> *********************************************************************

鐜鍙橀噺LD_LIBRARY_PATH鐢ㄦ潵鎸囧畾鏌ユ壘鍏變韓搴撴椂闄や簡榛樿璺緞涔嬪鐨勫叾浠栬礬寰勩?璇ヨ礬寰勫湪榛樿璺緞涔嬪墠鏌ユ壘)
縐繪紼嬪簭鏃剁殑緇忓父紕板埌闇瑕佷嬌鐢ㄤ竴浜涚壒瀹氱殑鍔ㄦ佸簱錛岃岃繖浜涚紪璇戝ソ鐨勫姩鎬佸簱鏀懼湪鎴戜滑鑷繁寤虹珛鐨勭洰褰曢噷錛岃繖鏃舵垜浠彲浠ヨ緗?font color="#C60A00" style="word-wrap: normal; word-break: normal;">LD_LIBRARY_PATH銆?br />渚嬶細export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/work/lib/
榪欐牱灝卞彲浠ヤ嬌鐢?work/lib/涓嬬殑搴撴枃浠朵簡,榪愯紼嬪簭鍚庣郴緇熶細鑷姩鍒扮幆澧冨彉閲?font color="#C60A00" style="word-wrap: normal; word-break: normal;">LD_LIBRARY_PATH鎸囧畾鐨勮礬寰勪腑鏌ユ壘鍏舵墍闇鐨勫簱銆?br />緋葷粺鏌ユ壘鍔ㄦ佸簱鐨勯『搴?br />緋葷粺鍏堟壘LD_LIBRARY_PATH涓嬬殑搴撳啀鎵?lib and /usr/lib絳夎礬寰勪笅鐨勫簱,榪樻湁/etc/ld.so.conf閲屾寚瀹氱殑璺緞(濡傛灉ld.so.conf瀛樺湪),man ldconfig for more information
[url=http://infomax/bbs/misc.php?action=viewratings&tid=111&pid=228][/url]
浣縇inux鍚姩涔嬪悗灝卞姞杞?font color="#C60A00" style="word-wrap: normal; word-break: normal;">LD_LIBRARY_PATH鐨勮礬寰?/strong>
/etc/rc.d/rc.local鏂囦歡涓姞鍏xport   LD_LIBRARY_PATH="xxxxx"  鍗沖彲
濡傛灉鍦ㄩ摼鎺ユ椂浣跨敤浜?-R"鍜?-L"閫夐」錛屽垯鐩稿叧鍔ㄦ佸簱鐨勮礬寰勫皢淇濆瓨鍦‥LF鏂囦歡涓紝浜?br />鏄互鍚庣殑榪愯涓笉鍐嶉渶瑕佽緗幆澧冨彉閲忓幓瀹氫綅鍔ㄦ佸簱銆傛瘮濡傦紝鏈変竴涓?br />/usr/local/lib/libfoo.so錛岃屼綘鐨刡ar紼嬪簭闇瑕佽繖涓猯ibfoo.so錛岀紪璇戙侀摼鎺ユ椂鏈濂?br />榪欐牱 錛歡cc -Wall -pipe -O3 -o bar -R/usr/local/lib -L/usr/local/lib bar.c -lfoo
錛?man gcc 錛屾病鍙戠幇-R鎴?rpath閫夐」錛屽緟鏌ワ級




Enic 2015-08-18 17:42 鍙戣〃璇勮
]]>
日本加勒比久久精品| 狠狠色丁香久久婷婷综| 亚洲精品WWW久久久久久| 久久毛片一区二区| 久久婷婷五月综合97色一本一本 | 少妇人妻88久久中文字幕| 久久无码人妻一区二区三区| 国产成人精品久久亚洲高清不卡 | 亚洲国产成人久久一区久久| 国产成人精品综合久久久久| 久久99精品国产| 久久久精品人妻一区二区三区蜜桃 | 久久天天躁狠狠躁夜夜不卡| 热久久这里只有精品| 成人综合久久精品色婷婷| 亚洲狠狠久久综合一区77777| 漂亮人妻被中出中文字幕久久| 青草影院天堂男人久久| 久久午夜伦鲁片免费无码| 欧美精品一区二区久久| 一级做a爰片久久毛片人呢| 人妻少妇久久中文字幕| 精品一二三区久久aaa片| 无码精品久久一区二区三区 | 国产精品久久久久久久久鸭 | 国产高潮国产高潮久久久91 | 人妻无码久久一区二区三区免费| 国产成人无码精品久久久免费| 2020国产成人久久精品| 亚洲精品美女久久久久99小说| 久久青青草原精品国产软件 | 午夜人妻久久久久久久久| 久久综合久久美利坚合众国| 久久婷婷五月综合色99啪ak| 国产精品99久久久久久www| 爱做久久久久久| 精品久久久无码中文字幕天天| 99久久99久久精品国产片| 国产精品一区二区久久精品无码 | 久久精品国产99久久无毒不卡| 久久精品国产免费观看三人同眠|