码迷,mamicode.com
首页 > 其他好文 > 详细

msys2

时间:2018-10-22 00:05:53      阅读:316      评论:0      收藏:0      [点我收藏+]

标签:needed   \n   latest   lis   move   toc   sdl   +=   file   

http://repo.msys2.org/distrib/msys2-x86_64-latest.exe

MINGW_HOME=C:\msys64\mingw64
MSYS_HOME=C:\msys64
在PATH变量的最后增加
;%MINGW_HOME%\bin;${MSYS_HOME}\usr\bin
// msys2
pacman -Sy pacman //同步仓库数据和升级pacman
pacman -Syu   //升级系统和同步仓库数据
pacman -Su    //升级系统中所有已安装的包
pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime vim git
pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime vim git make diffutils yasm texinfo pkg-config cvs svn bison nasm patch unzip ed automake autoconf cmake mercurial libtool zlib zlib-devel
pacman --needed -Sy nasm patch unzip ed automake autoconf cmake
pacman --needed -Sy mercurial libtool zlib zlib-devel
pacman --needed -Sy libtoolize
pacman -Sl | grep -i gcc
pacman -Sl | grep -i plug
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-i686-gcc
pacman -S gcc
pacman -S mingw-w64-x86_64-yasm mingw-w64-x86_64-SDL

#pacman --needed -Sy asciidoc automake-wrapper autogen diffstat dos2unix help2man intltool libtool python xmlto zip subversion wget p7zip man-db gperf winpty upx dlfcn doxygen libpng pcre tools-git ninja

// .bashrc
alias rm=‘rm -i‘
alias ls=‘ls --color=auto‘
alias grep=‘grep --color=auto‘
alias ll=‘ls -alF‘
alias mv=‘mv -i‘
export PS1="\[\033[36m\]wlj\[\033[m\]@\[\033[32m\]\h \[\e[35m\]$MSYSTEM\[\e[0m\]:\[\033[33;1m\]\w\[\033[m\]\$"
export PATH=$PATH:/d/android/sdk/platform-tools:/d/android/sdk/tools
export JAVA_HOME_MSYS=/c/Program\ Files/Java/jdk8/
export PATH=$PATH:%JAVA_HOME_MSYS/bin:%JAVA_HOME_MSYS/jre/bin

// 乱码
Locale=(选择default会自动变成)C,,Character Set=GBK=> 结果终于可以正常显示中文了:

// 原始
PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[35m\]$MSYSTEM\[\e[0m\] \[\e[33m\]\w\[\e[0m\]\n\$
Administrator@wljpc MINGW64 ~
$


pacman 的配置
编辑 /etc/pacman.d/mirrorlist.mingw32 ,在文件开头添加:
  Server = http://mirrors.ustc.edu.cn/msys2/REPOS/MINGW/i686
  Server = http://mirror.bit.edu.cn/msys2/REPOS/MINGW/i686
编辑 /etc/pacman.d/mirrorlist.mingw64 ,在文件开头添加:
  Server = http://mirrors.ustc.edu.cn/msys2/REPOS/MINGW/x86_64
  Server = http://mirror.bit.edu.cn/msys2/REPOS/MINGW/x86_64
编辑 /etc/pacman.d/mirrorlist.msys ,在文件开头添加:
  Server = http://mirrors.ustc.edu.cn/msys2/REPOS/MSYS2/$arch
  Server = http://mirror.bit.edu.cn/msys2/REPOS/MSYS2/$arch
然后执行 pacman -Sy 刷新软件包数据即可。



wlj@wljpc MSYS:/e/media-autobuild_suite$git diff
diff --git a/build/media-suite_helper.sh b/build/media-suite_helper.sh
index 4040b59..8b9483f 100644
--- a/build/media-suite_helper.sh
+++ b/build/media-suite_helper.sh
@@ -243,10 +243,19 @@ do_wget() {
             url="https://jb-alvarado.github.io/media-autobuild_suite${url}"

         curlcmds=("${curl_opts[@]}")
+
+        # echo "wlj debug1 $curlcmds"
+
         [[ $notmodified && -f $archive ]] && curlcmds+=(-z "$archive" -R)
+        # echo "wlj debug2 $curlcmds"
         [[ $hash ]] && tries=3
+        # echo "wlj debug3 $curlcmds $hash"
         while [[ $tries -gt 0 ]]; do
+            # echo "wlj debug4 $tries "
+            echo "wlj debug5 ${curlcmds[@]} $archive $url"
             response_code="$("${curlcmds[@]}" -w "%{response_code}" -o "$archive" "$url")"
+            echo "wlj debug6 $response_code"
+            echo "wlj debug7 ${curlcmds[@]} -w %{response_code} -o $archive $url"
             let tries-=1

             if [[ $response_code = "200" || $response_code = "226" ]]; then
@@ -278,6 +287,7 @@ do_wget() {
             fi
         fi
     else
+        echo "wlj debug8 $tries "
         [[ $quiet ]] || do_print_status "├ ${dirName:-$archive}" "$green" "File up-to-date"
     fi
     [[ $norm ]] || add_to_remove "$(pwd)/$archive"

msys2

标签:needed   \n   latest   lis   move   toc   sdl   +=   file   

原文地址:https://www.cnblogs.com/wljcom/p/9827650.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!