<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=gb2312"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:等线;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@等线";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML 预设格式 字符";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:等线;
        color:windowtext;}
span.HTML
        {mso-style-name:"HTML 预设格式 字符";
        mso-style-priority:99;
        mso-style-link:"HTML 预设格式";
        font-family:宋体;}
span.n
        {mso-style-name:n;}
span.o
        {mso-style-name:o;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:等线;}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link="#0563C1" vlink="#954F72" style='text-justify-trim:punctuation'><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'>Hi </span><span lang=EN-US style='font-size:10.5pt;font-family:等线'>Communityer</span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'>Regarding the StarlingX Build Guide</span><span style='font-size:11.0pt'>:</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'>When we built the latest version of StarlingX, we found some build guide issues and raised them here.</span><span style='font-size:11.0pt'>:</span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'>Guide Path</span><span style='font-size:11.0pt'>:</span><span lang=EN-US><a href="https://docs.starlingx.io/developer_resources/build_guide.html">https://docs.starlingx.io/developer_resources/build_guide.html</a></span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>★</span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'>Issues<b> (1).</b></span><b><span lang=EN-US> Paragraph: <span style='color:red'>Build the CentOS mirror repository</span></span></b><span lang=EN-US><o:p></o:p></span></p><pre style='margin-bottom:7.5pt;background:#333333;word-break:break-all'><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:white'>cd $HOME/tools/centos-mirror-tools/<o:p></o:p></span></pre><pre style='margin-bottom:7.5pt;background:#333333;word-break:break-all'><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:white'>docker run -it --volume $(pwd):/localdisk local/$USER-stx-builder:7.4 bash<o:p></o:p></span></pre><pre style='margin-bottom:7.5pt;background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:#D0D0D0'>cd</span></span><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:white'> </span><span class=n><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:#D0D0D0'>localdisk</span></span><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:white'> </span><span class=o><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:#D0D0D0'>&&</span></span><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:white'> </span><span class=n><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:#D0D0D0'>bash</span></span><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:white'> </span><span class=n><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:#D0D0D0'>download_mirror</span></span><span class=o><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:#D0D0D0'>.</span></span><span class=n><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:#D0D0D0'>sh</span></span><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:white'><o:p></o:p></span></pre><p class=MsoNormal><b><span lang=EN-US style='font-size:10.5pt;font-family:等线'>The above steps are no longer applicable to the current StarlingX Master environment construction.<o:p></o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.5pt;font-family:等线'>At the same time, this step will directly lead to the following download error.<o:p></o:p></span></b></p><pre style='background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:#D0D0D0'> [root@5fc5c5f5f610 /]# cd localdisk && bash download_mirror.sh<o:p></o:p></span></span></pre><pre style='background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='color:#D0D0D0'>download_mirror.sh: line 8: /localdisk/../toCOPY/lst_utils.sh: No such file or directory<o:p></o:p></span></span></pre><pre style='background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='color:#D0D0D0'>download_mirror.sh: line 232: merge_lst: command not found<o:p></o:p></span></span></pre><pre style='background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='color:#D0D0D0'>download_mirror.sh: line 233: merge_lst: command not found<o:p></o:p></span></span></pre><pre style='background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='color:#D0D0D0'>download_mirror.sh: line 234: merge_lst: command not found<o:p></o:p></span></span></pre><pre style='background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='color:#D0D0D0'>download_mirror.sh: line 235: merge_lst: command not found<o:p></o:p></span></span></pre><pre style='background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='color:#D0D0D0'>download_mirror.sh: line 236: merge_lst: command not found<o:p></o:p></span></span></pre><pre style='background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='color:#D0D0D0'>--------------------------------------------------------------<o:p></o:p></span></span></pre><pre style='background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='color:#D0D0D0'>WARNING: this script HAS TO access internet (http/https/ftp),<o:p></o:p></span></span></pre><pre style='background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='color:#D0D0D0'>so please make sure your network working properly!!<o:p></o:p></span></span></pre><pre style='background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='color:#D0D0D0'>step #0: Configuring yum repos ...<o:p></o:p></span></span></pre><pre style='background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='color:#D0D0D0'>download_mirror.sh: line 345: [: !=: unary operator expected<o:p></o:p></span></span></pre><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线'>As the result, the compilation and construction of StarlingX could not be implemented.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.5pt;font-family:等线'>Temporary countermeasure:<o:p></o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.5pt;font-family:等线'>In order for download_mirror.sh to run normally, we have adopted the following methods to deal with it, Methods as below:</span></b><span lang=EN-US style='font-size:10.5pt;font-family:等线'><o:p></o:p></span></p><pre style='background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='color:#D0D0D0'>cd $HOME/tools<o:p></o:p></span></span></pre><pre style='background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='color:#D0D0D0'>bash tb</span><span lang=EN-US style='color:white'>.</span><span lang=EN-US style='color:#D0D0D0'>sh run<o:p></o:p></span></span></pre><pre style='background:#333333;word-break:break-all'><span class=n><span lang=EN-US style='color:#D0D0D0'>bash tb</span><span lang=EN-US style='color:white'>.</span><span lang=EN-US style='color:#D0D0D0'>sh exec<o:p></o:p></span></span></pre><pre style='margin-bottom:7.5pt;background:#333333;word-break:break-all'><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:white'>--------------------------<o:p></o:p></span></pre><pre style='margin-bottom:7.5pt;background:#333333;word-break:break-all'><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:white'>[zs@af1b85270819 /]$ cd $MY_REPO_ROOT_DIR<o:p></o:p></span></pre><pre style='margin-bottom:7.5pt;background:#333333;word-break:break-all'><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:white'>[zs@af1b85270819 starlingx]$ cd stx-tools/centos-mirror-tools/<o:p></o:p></span></pre><pre style='margin-bottom:7.5pt;background:#333333;word-break:break-all'><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:white'>[zs@af1b85270819 centos-mirror-tools]$sudo MY_REPO=/localdisk/designer/zs/starlingx/cgcs-root ./download_mirror.sh<o:p></o:p></span></pre><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线'>Although this solution can currently solve the download_mirror.sh Error problem temporarily. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线'>However,We hope the community can provide better solutions to share, Thank you!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线'>--------------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线'>From: Neusoft - Shuai<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线'><o:p> </o:p></span></p></div><br>
<P>---------------------------------------------------------------------------------------------------<br>Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) <br>is intended only for the use of the intended recipient and may be confidential and/or privileged of <br>Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is <br>not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying <br>is strictly prohibited, and may be unlawful.If you have received this communication in error,please <br>immediately notify the sender by return e-mail, and delete the original message and all copies from <br>your system. Thank you. <br>---------------------------------------------------------------------------------------------------</P></body></html>