我的问题与我以前的问题有关,但不清楚。 auzre databricks install an application but a command cannot be entered from the databricks notebook
因此,我创建了一个新的。
问题是关于在databricks群集上安装c / c ++工具。这是为进一步的并行编程工作做准备,因为我需要加快工具的性能。
如果这不是一个好地方,请告诉我在哪里可以发布这种问题。谢谢!
在databricks python3笔记本上,我的代码:
import subprocess
commands = '''
cd /dbfs/my_project/tool
pwd
make VERBOSE=1
'''
process = subprocess.Popen('/bin/bash', stdin=subprocess.PIPE, stdout=subprocess.PIPE)
out, err = process.communicate(commands.encode('utf-8'))
print(out.decode('utf-8'))
我遇到错误:
** Building a library "/dbfs/my_project/tool/lib/libxxx.linux.x86_64.gnu.opt.a".
make[2]: Entering directory '/dbfs/my_project/tool/xxx'
make[3]: Entering directory '/dbfs/my_project/tool/xxx'
Makefile: recipe for target 'A_PHONY_TAG for some dependency' failed
make[3]: Leaving directory '/dbfs/my_project/tool/xxx'
Makefile: recipe for target 'preprocess' failed
make[2]: Leaving directory '/dbfs/my_project/tool/xxx'
Makefile.doit: recipe for target '/dbfs/my_project/tool/xxx/lib/libxxx.linux.x86_64.gnu.opt.a' failed
make[1]: Leaving directory '/dbfs/my_project/tool/xxx/'
Makefile: recipe for target 'xxxbinary' failed
我可以在MacBook上安装相同的应用程序而没有任何问题。