Updated scripts
This commit is contained in:
parent
2c40c10ea5
commit
710a8c762f
@ -41,7 +41,7 @@ print_status "Detected OS: $OS $VER"
|
|||||||
case $OS in
|
case $OS in
|
||||||
"Ubuntu"|"Debian GNU/Linux")
|
"Ubuntu"|"Debian GNU/Linux")
|
||||||
# Common packages for both Ubuntu and Debian
|
# Common packages for both Ubuntu and Debian
|
||||||
PACKAGES="cmake make g++ devscripts debhelper libtbb-dev libxxhash-dev"
|
PACKAGES="cmake make g++ devscripts debhelper"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
print_error "Unsupported distribution: $OS"
|
print_error "Unsupported distribution: $OS"
|
||||||
@ -54,6 +54,10 @@ is_package_installed() {
|
|||||||
dpkg -l "$1" 2>/dev/null | grep -q "^ii"
|
dpkg -l "$1" 2>/dev/null | grep -q "^ii"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Update package lists
|
||||||
|
print_status "Updating package lists..."
|
||||||
|
apt-get update
|
||||||
|
|
||||||
# Install missing packages
|
# Install missing packages
|
||||||
print_status "Checking and installing required packages..."
|
print_status "Checking and installing required packages..."
|
||||||
for pkg in $PACKAGES; do
|
for pkg in $PACKAGES; do
|
||||||
@ -69,10 +73,6 @@ for pkg in $PACKAGES; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Update package lists
|
|
||||||
print_status "Updating package lists..."
|
|
||||||
apt-get update
|
|
||||||
|
|
||||||
# Verify all required tools are installed
|
# Verify all required tools are installed
|
||||||
print_status "Verifying installation..."
|
print_status "Verifying installation..."
|
||||||
for tool in cmake make g++; do
|
for tool in cmake make g++; do
|
||||||
@ -82,17 +82,5 @@ for tool in cmake make g++; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Check TBB installation
|
|
||||||
if [ ! -d "/usr/include/tbb" ]; then
|
|
||||||
print_error "TBB headers not found"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# # Check Boost installation
|
|
||||||
# if [ ! -d "/usr/include/boost" ]; then
|
|
||||||
# print_error "Boost headers not found"
|
|
||||||
# exit 1
|
|
||||||
# fi
|
|
||||||
|
|
||||||
print_status "All dependencies installed successfully!"
|
print_status "All dependencies installed successfully!"
|
||||||
print_status "You can now run ./build.sh to build the project"
|
print_status "You can now run ./build.sh to build the project"
|
Loading…
x
Reference in New Issue
Block a user