锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美精品一二三,国产精品swag,国产综合久久久久久鬼色http://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="hvzpftn" 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 鍙戣〃璇勮
]]>
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            日韩一二三区视频| 欧美一区观看| 欧美日韩免费视频| 日韩小视频在线观看| 亚洲激情视频网| 欧美久久影院| 亚洲伊人一本大道中文字幕| 亚洲一区二区在| 国内精品久久久久久久97牛牛| 美女网站久久| 欧美日韩亚洲高清一区二区| 亚洲综合第一| 久久三级福利| 夜夜爽av福利精品导航| 亚洲制服少妇| 亚洲第一主播视频| 日韩亚洲一区二区| 国产尤物精品| 亚洲欧洲综合另类| 国产农村妇女毛片精品久久莱园子| 久久久水蜜桃av免费网站| 久久aⅴ国产欧美74aaa| 亚洲成人在线观看视频| 亚洲理伦在线| 在线精品视频一区二区| 亚洲精品在线免费| 国内自拍视频一区二区三区| 亚洲精品国产精品国自产观看| 国产精品自在线| 亚洲国产视频直播| 国产精品尤物| 亚洲国产女人aaa毛片在线| 国产精品欧美在线| 欧美激情视频一区二区三区不卡| 国产精品久久久久久久久借妻 | 久久影院亚洲| 中日韩视频在线观看| 欧美中文字幕在线视频| 一区二区精品| 免费在线亚洲欧美| 久久国产成人| 国产精品爱久久久久久久| 欧美成人a∨高清免费观看| 国产精品乱人伦一区二区 | 欧美在线啊v一区| 欧美韩日一区二区| 久久免费视频在线观看| 国产精品伦理| 一区二区不卡在线视频 午夜欧美不卡在 | 久久精视频免费在线久久完整在线看| 亚洲香蕉成视频在线观看| 免费成人av在线| 女人色偷偷aa久久天堂| 国产亚洲制服色| 亚洲综合国产| 亚洲一区二区三区高清 | 欧美日韩一区高清| 亚洲高清视频一区| 黄色一区二区三区四区| 新片速递亚洲合集欧美合集| 午夜国产精品视频免费体验区| 欧美精品国产一区| 亚洲国产精品成人一区二区| 亚洲日本成人女熟在线观看| 美脚丝袜一区二区三区在线观看 | 亚洲国产欧美日韩| 久久人人爽爽爽人久久久| 久久aⅴ国产紧身牛仔裤| 国产精品一级| 欧美亚洲免费| 美女黄网久久| 最新亚洲视频| 欧美理论在线| 中文国产成人精品| 欧美在线观看网址综合| 国产夜色精品一区二区av| 欧美影院一区| 欧美成人精品不卡视频在线观看 | 精品9999| 久久字幕精品一区| 亚洲国产精品久久| 一区电影在线观看| 国产精品区二区三区日本| 亚洲欧美在线磁力| 久久久亚洲影院你懂的| 欲香欲色天天天综合和网| 免费日韩av电影| 99国产精品久久久久久久久久| 亚洲一区国产| 国产一区美女| 欧美激情精品久久久久久久变态| 亚洲精品视频在线看| 欧美在线观看一区二区| 在线观看三级视频欧美| 欧美人妖在线观看| 欧美一区二区三区免费大片| 欧美国产三级| 亚洲欧美综合v| 亚洲高清影视| 国产精品久久午夜| 久久综合久久久久88| 一区二区三区回区在观看免费视频| 欧美影院午夜播放| 亚洲区在线播放| 国产精品视频yy9299一区| 美女诱惑一区| 亚洲尤物在线| 亚洲日本一区二区三区| 久久理论片午夜琪琪电影网| 亚洲最新色图| 亚洲福利视频一区| 国产精品入口66mio| 欧美成人福利视频| 欧美亚洲视频| 亚洲午夜久久久久久久久电影院 | 欧美一区二区视频网站| 亚洲精品久久久久久久久久久久| 国产精品亚洲综合| 欧美伦理在线观看| 久久av一区二区| 亚洲综合清纯丝袜自拍| 亚洲人成网站在线播| 裸体歌舞表演一区二区| 欧美在线视频免费播放| 亚洲天堂av在线免费观看| 亚洲人成啪啪网站| 国产日本欧美一区二区| 国产精品va在线播放我和闺蜜| 欧美xx69| 免费毛片一区二区三区久久久| 欧美在线免费播放| 亚洲一区二区三区在线看 | 久久大逼视频| 午夜亚洲福利在线老司机| 国产精品igao视频网网址不卡日韩| 国产伦精品一区二区三| 一区二区三区精品视频在线观看| 亚洲国产美国国产综合一区二区| 久久久久这里只有精品| 性高湖久久久久久久久| 亚洲资源在线观看| 亚洲一区二区三区高清不卡| 亚洲视频在线播放| 在线亚洲免费| 亚洲一区二区av电影| 亚洲午夜激情在线| 午夜精品区一区二区三| 亚洲欧美在线磁力| 亚洲欧洲av一区二区| 欧美一二区视频| 久久激情综合网| 久久欧美肥婆一二区| 免费在线一区二区| 免费成人在线观看视频| 欧美激情一二三区| 亚洲欧洲在线免费| 99热在线精品观看| 亚洲一区二区三区激情| 香蕉成人久久| 久久综合99re88久久爱| 欧美激情综合五月色丁香小说| 欧美日本亚洲| 国产日韩欧美二区| 一区在线影院| 日韩一级在线观看| 欧美一级淫片aaaaaaa视频| 久久九九99| 亚洲福利视频专区| 亚洲视频在线观看视频| 午夜一区二区三区不卡视频| 久久久久成人网| 欧美精品免费播放| 国产欧美精品一区| 亚洲国产成人午夜在线一区| 亚洲图片激情小说| 久久精品国产精品| 亚洲电影在线免费观看| 亚洲婷婷综合色高清在线| 久久久久**毛片大全| 欧美日韩精品二区| 国产精品亚洲综合| 亚洲精品乱码久久久久久蜜桃91| 亚洲男人的天堂在线观看| 麻豆成人在线| 亚洲一区视频| 欧美精品一区三区| 国模精品一区二区三区| 9久re热视频在线精品| 久久se精品一区精品二区| 亚洲福利视频一区二区| 午夜精品免费| 欧美精品自拍| 亚洲国产精品久久| 欧美在线亚洲| 一本大道久久精品懂色aⅴ | 欧美黄网免费在线观看| 亚洲一区二区三区在线观看视频 | 国产精品久久久久久五月尺| 亚洲国产成人不卡| 久久久久综合|