MSYS2开发环境搭建 proxy

桃扇骨 2022-07-13 14:53 235阅读 0赞



这是一篇写得较好的文章:

http://blog.csdn.net/callinglove/article/details/48601775

但公司通过代理服务器上网,所以要proxy settings.

http://stackoverflow.com/questions/29783065/msys2-pacman-cant-update-packages-through-corporate-firewall

我是在每次打开shell后输入:

export http_proxy=:@proxy-host-name:8080

最后编辑 msys的 etc/profile文件,在末尾添加以下几行,用来告诉编译器优先查找我们的 64位库文件目录(具体目录自己指定)

  1. export LDFLAGS="-L/mingw/local/lib -lpthread $LDFLAGS" # -lpthread required to compile GraphicsMagick.
  2. export CFLAGS="-I/mingw/local/include $CFLAGS"
  3. export CPPFLAGS="-I/mingw/local/include $CPPFLAGS"
  4. export CXXFLAGS="-I/mingw/local/include $CXXFLAGS"
  5. export PATH="/mingw/local/bin:$PATH"



发表评论

表情:
评论列表 (有 0 条评论,235人围观)

还没有评论,来说两句吧...

相关阅读