jonathanhu237 opened a new issue, #3538:
URL: https://github.com/apache/doris-website/issues/3538

   The [current 
documentation](https://doris.apache.org/community/source-install/compilation-with-ldb-toolchain)
 uses `sh` to run scripts that rely on Bash syntax.
   
   When following the guide on Ubuntu/Debian, running:
   
   ```bash
   sh ldb_toolchain_gen.sh /path/to/ldb_toolchain/
   ```
   
   fails with errors like:
   
   ```
   ldb_toolchain_gen.sh: 42: [[: not found
   ldb_toolchain_gen.sh: 47: [[: not found
   ldb_toolchain_gen.sh: 70: [: x86_64: unexpected operator
   ldb_toolchain_gen.sh: 72: [: x86_64: unexpected operator
   Unknown architecture: x86_64
   ```
   
   This happens because on Ubuntu/Debian, `sh` usually points to `dash`, while 
`ldb_toolchain_gen.sh` uses Bash-specific syntax such as `[[ ]]`.
   
   I can submit a PR for this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to