Coder Social home page Coder Social logo

gcc_650_auto's Introduction

gcc 6.5.0脚本安装

脚本说明

gcc_650.sh在姜峰等同学编写的gcc 6.5.0安装编译文档的基础上完成,由于时间仓促,仅支持6.5.0版本,需要其他版本的同学请自行修改脚本中相关版本内容,且仅支持在VGPU01-04上使用。

使用方法

由于安装编译时间较长,所以建议挂后台运行,建议命令如下:

nohup bash gcc_650.sh [usr] [path] &
tail -f nohup.out

其中[usr][path]分别填入用户名(如zhangsy)和指定的安装目录(如gcc_650)

校验

如果最终正确输出gcc版本号,即如下内容:

gcc (GCC) 6.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

说明安装成功,否则安装失败。

安装完成后请清理不必要的压缩文件.

gcc_650_auto's People

Contributors

thomaszhang727 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

gcc_650_auto's Issues

Why can't I install gcc 6.5.0 successfully on vgpu02

After running the following command, I cannot install the gcc successfully.

bash gcc_650.sh yanyx gcc_650

There is no error during installation, but the gcc version remains still.

----------------------------------------------------------------------
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home1/yanyx/gcc_650/gcc-6.5.0/build/x86_64-pc-linux-gnu/libatomic'
make[3]: Leaving directory `/home1/yanyx/gcc_650/gcc-6.5.0/build/x86_64-pc-linux-gnu/libatomic'
make[2]: Leaving directory `/home1/yanyx/gcc_650/gcc-6.5.0/build/x86_64-pc-linux-gnu/libatomic'
make[1]: Leaving directory `/home1/yanyx/gcc_650/gcc-6.5.0/build'
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

感谢姜峰、邱守猛、李志程、叶子逸和小弟张思源同学!

After checking for an hour, I find that the following PATH has not been added to file ".bashrc". By adding the PATH and run"source .bashrc" again, I install the gcc successfully.

add_context_inf="export PATH=/home1/${usr}/${path}/gcc-6.5.0/bin:\$PATH"

Is there anything in the code that could be improved? Or maybe there is something I do wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.