MCPcopy Create free account
hub / github.com/NetSys/bess / check_essential

Function check_essential

build.py:173–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171
172
173def check_essential():
174 if not cmd_success('gcc -v'):
175 print('Error - "gcc" is not available', file=sys.stderr)
176 sys.exit(1)
177
178 if not cmd_success('g++ -v'):
179 print('Error - "g++" is not available', file=sys.stderr)
180 sys.exit(1)
181
182 if not cmd_success('make -v'):
183 print('Error - "make" is not available', file=sys.stderr)
184 sys.exit(1)
185
186 required('numa.h', 'libnuma-dev', 'gcc')
187 required('pcap/pcap.h', 'libpcap-dev', 'gcc')
188 required('zlib.h', 'zlib1g-dev', 'gcc')
189 required('glog/logging.h', 'libgoogle-glog-dev', 'g++')
190 required('gflags/gflags.h', 'libgflags-dev', 'g++')
191 required('gtest/gtest.h', 'libgtest-dev', 'g++')
192 required('benchmark/benchmark.h', 'https://github.com/google/benchmark',
193 'g++')
194
195
196def set_config(filename, config, new_value):

Callers 3

build_dpdkFunction · 0.85
build_bessFunction · 0.85
build_kmodFunction · 0.85

Calls 2

cmd_successFunction · 0.85
requiredFunction · 0.85

Tested by

no test coverage detected