Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
hal/install_dependencies.sh at master · emsec/hal · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
emsec
hal
Repository navigation
Code
Issues
23
(23)
Pull requests
7
(7)
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
hal
/
install_dependencies.sh
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
executable file
·
127 lines (119 loc) · 5.42 KB
master
Breadcrumbs
hal
/
install_dependencies.sh
Copy path
Top
File metadata and controls
Code
Blame
executable file
·
127 lines (119 loc) · 5.42 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#!
/usr/bin/env bash
platform=
'
unknown
'
unamestr=
$(
uname
)
distribution=
'
unknown
'
release=
'
unknown
'
if
[[
"
${HAL_DOCKER
:-
0}
"
==
"
1
"
]]
;
then
platform=
'
docker
'
distribution=
$(
lsb_release -is
)
release=
$(
lsb_release -rs
)
elif
[[
"
$unamestr
"
==
'
Linux
'
]]
;
then
platform=
'
linux
'
distribution=
$(
lsb_release -is
)
release=
$(
lsb_release -rs
)
elif
[[
"
$unamestr
"
==
'
Darwin
'
]]
;
then
platform=
'
macOS
'
fi
major=
${release
%%
.
*
}
if
[[
"
$platform
"
==
'
macOS
'
]]
;
then
echo
"
Executing brew bundle
"
brew bundle
pip3 install -r requirements.txt
BREW_PREFIX=
$(
brew --prefix
)
if
[
-n
"
$(
$SHELL
-c
'
echo $ZSH_VERSION
'
)
"
]
;
then
grep -Fxq
"
export PATH=
\"
$BREW_PREFIX
/opt/qt/bin:
\$
PATH
\"
"
~
/.zshrc
if
!
[[
$?
-eq
0 ]]
;
then
echo
"
export PATH=
\"
$BREW_PREFIX
/opt/qt/bin:
\$
PATH
\"
"
>>
~
/.zshrc
fi
grep -Fxq
"
export PATH=
\"
$BREW_PREFIX
/opt/llvm/bin:
\$
PATH
\"
"
~
/.zshrc
if
!
[[
$?
-eq
0 ]]
;
then
echo
"
export PATH=
\"
$BREW_PREFIX
/opt/llvm/bin:
\$
PATH
\"
"
>>
~
/.zshrc
fi
grep -Fxq
"
export PATH=
\"
$BREW_PREFIX
/opt/flex/bin:
\$
PATH
\"
"
~
/.zshrc
if
!
[[
$?
-eq
0 ]]
;
then
echo
"
export PATH=
\"
$BREW_PREFIX
/opt/flex/bin:
\$
PATH
\"
"
>>
~
/.zshrc
fi
grep -Fxq
"
export PATH=
\"
$BREW_PREFIX
/opt/bison/bin:
\$
PATH
\"
"
~
/.zshrc
if
!
[[
$?
-eq
0 ]]
;
then
echo
"
export PATH=
\"
$BREW_PREFIX
/opt/bison/bin:
\$
PATH
\"
"
>>
~
/.zshrc
fi
source
~
/.zshrc
elif
[
-n
"
$(
$SHELL
-c
'
echo $BASH_VERSION
'
)
"
]
;
then
grep -Fxq
"
export PATH=
\"
$BREW_PREFIX
/opt/qt/bin:
\$
PATH
\"
"
~
/.bash_profile
if
!
[[
$?
-eq
0 ]]
;
then
echo
"
export PATH=
\"
$BREW_PREFIX
/opt/qt/bin:
\$
PATH
\"
"
>>
~
/.bash_profile
fi
grep -Fxq
"
export PATH=
\"
$BREW_PREFIX
/opt/llvm/bin:
\$
PATH
\"
"
~
/.bash_profile
if
!
[[
$?
-eq
0 ]]
;
then
echo
"
export PATH=
\"
$BREW_PREFIX
/opt/llvm/bin:
\$
PATH
\"
"
>>
~
/.bash_profile
fi
grep -Fxq
"
export PATH=
\"
$BREW_PREFIX
/opt/flex/bin:
\$
PATH
\"
"
~
/.bash_profile
if
!
[[
$?
-eq
0 ]]
;
then
echo
"
export PATH=
\"
$BREW_PREFIX
/opt/flex/bin:
\$
PATH
\"
"
>>
~
/.bash_profile
fi
grep -Fxq
"
export PATH=
\"
$BREW_PREFIX
/opt/bison/bin:
\$
PATH
\"
"
~
/.bash_profile
if
!
[[
$?
-eq
0 ]]
;
then
echo
"
export PATH=
\"
$BREW_PREFIX
/opt/bison/bin:
\$
PATH
\"
"
>>
~
/.bash_profile
fi
source
~
/.bash_profile
else
echo
"
Unknown User Shell: abort!
"
exit
255
fi
elif
[[
"
$platform
"
==
'
linux
'
]]
;
then
.
/etc/os-release
if
[
"
$distribution
"
==
'
Ubuntu
'
]
||
[
"
$distribution
"
==
'
LinuxMint
'
]
;
then
if
[[
"
$major
"
-le
22 ]]
;
then
additional_deps=
"
libqt6core5compat6-dev libglu1-mesa-dev
"
else
additional_deps=
"
qt6-5compat-dev
"
fi
sudo apt-get update
&&
sudo apt-get install -y build-essential verilator \
lsb-release git cmake pkgconf libboost-all-dev qt6-base-dev \
libpython3-dev ccache autoconf autotools-dev libsodium-dev \
libqt6svg6-dev libqt6svg6
*
\
ninja-build lcov gcovr python3-sphinx \
doxygen python3-sphinx-rtd-theme python3-jedi python3-pip \
pybind11-dev python3-pybind11 rapidjson-dev libspdlog-dev libz3-dev z3 \
libreadline-dev apport python3-dateutil libgraphviz-dev libxcb-xkb-dev \
$additional_deps
\
graphviz libomp-dev libsuitesparse-dev
#
For documentation
elif
[[
"
$distribution
"
==
"
Arch
"
]]
;
then
yay -S --needed base-devel lsb-release git verilator cmake boost-libs pkgconf \
qt6-base python ccache autoconf libsodium qt6-svg ninja lcov \
gcovr python-sphinx doxygen python-sphinx_rtd_theme python-jedi \
python-pip pybind11 rapidjson spdlog graphviz boost \
python-dateutil z3
elif
[[
"
$ID
"
==
'
rhel
'
]]
;
then
RHEL_VERSION=
`
echo
$VERSION_ID
|
cut -d. -f1
`
echo
"
Running experimental setup for RedHat Enterprise Linux version
$RHEL_VERSION
<
$VERSION_ID
>.
"
read
-p
"
Will try to install some development packages from Fedora Rawhide. Is this OK? [yN]
"
yn
if
[
"
$yn
"
!=
'
y
'
]
&&
[
"
$yn
"
!=
'
Y
'
]
;
then
echo
"
Aborted installation
"
exit
255
fi
for
pkg
in
pkgconfig git qtv llvm cmake flex bison python graphviz boost readline g++ make
;
do
sudo yum install -y
$pkg
done
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-
$RHEL_VERSION
.noarch.rpm
sudo yum update -y
for
pkg
in
boost-devel z3 rapidjson-devel qt6-qtbase-devel qt6-qtsvg-devel z3-devel python-devel verilator
;
do
sudo yum install -y
$pkg
done
exit
255
else
echo
"
Unsupported Linux distribution: abort!
"
exit
255
fi
elif
[[
"
$platform
"
==
'
docker
'
]]
;
then
#
We can assume that we are in a ubuntu container, because of the official Dockerfile in the hal project
apt-get update
&&
apt-get install -y build-essential verilator \
lsb-release git cmake pkgconf libboost-all-dev qt6-base-dev \
libpython3-dev ccache autoconf autotools-dev libsodium-dev \
libqt6svg6-dev libqt6svg6
*
libqt6core5compat6 qt6-5compat-dev \
ninja-build lcov gcovr python3-sphinx \
doxygen python3-sphinx-rtd-theme python3-jedi python3-pip \
pybind11-dev python3-pybind11 python3-dateutil rapidjson-dev \
libspdlog-dev libz3-dev libreadline-dev libxcb-xkb-dev libgraphviz-dev \
graphviz libomp-dev libsuitesparse-dev
#
For documentation
fi
You can’t perform that action at this time.