mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-19 12:17:02 +00:00
Add system compiler symlink updates to use GCC 10 by default
This commit is contained in:
@@ -99,15 +99,30 @@ cat > /etc/ld.so.conf.d/gcc-10.conf << 'EOF'
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
ldconfig
|
ldconfig
|
||||||
|
|
||||||
|
# Update system compiler symlinks to use GCC 10
|
||||||
|
rm -f /usr/bin/cc /usr/bin/gcc /usr/bin/g++ /usr/bin/c++
|
||||||
|
ln -s /usr/local/bin/gcc /usr/bin/cc
|
||||||
|
ln -s /usr/local/bin/gcc /usr/bin/gcc
|
||||||
|
ln -s /usr/local/bin/g++ /usr/bin/g++
|
||||||
|
ln -s /usr/local/bin/g++ /usr/bin/c++
|
||||||
```
|
```
|
||||||
|
|
||||||
**Verify Installation:**
|
**Verify Installation:**
|
||||||
```bash
|
```bash
|
||||||
/usr/local/bin/gcc --version
|
# Verify GCC 10 installation
|
||||||
|
gcc --version
|
||||||
# Should output: gcc (GCC) 10.x.x
|
# Should output: gcc (GCC) 10.x.x
|
||||||
|
|
||||||
/usr/local/bin/g++ --version
|
g++ --version
|
||||||
# Should output: g++ (GCC) 10.x.x
|
# Should output: g++ (GCC) 10.x.x
|
||||||
|
|
||||||
|
# Verify symlinks are correct
|
||||||
|
which cc
|
||||||
|
# Should output: /usr/bin/cc
|
||||||
|
|
||||||
|
ls -al /usr/bin/cc
|
||||||
|
# Should show: /usr/bin/cc -> /usr/local/bin/gcc
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user