我正在尝试在最新版本的macOS 10.14上安装Charm ++。遵循此http://charm.cs.illinois.edu/manuals/html/charm++/A.html之后,当我尝试执行./build charm++ netlrts-darwin-x86_64 --with-production -j8
时出现此错误:
configure: error: in `/Users/youssefmoawad/Downloads/charm-6.9.0/netlrts-darwin-x86_64/tmp':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [headers] Error 2
-------------------------------------------------
Charm++ NOT BUILT. Either cd into netlrts-darwin-x86_64/tmp and try
to resolve the problems yourself, visit
http://charm.cs.illinois.edu/
for more information. Otherwise, email the developers at charm@cs.illinois.edu
当我尝试使用替代方法通过Spack进行安装时;首先,我必须安装Spack:https://spack.io。但是,当我执行spack install hdf5
时,失败了:
Error: InstallError: OpenMPI requires both C and Fortran compilers!
/Users/youssefmoawad/Downloads/spack/var/spack/repos/builtin/packages/openmpi/package.py:337, in die_without_fortran:
334 # avoid delayed build errors in dependents.
335 if (self.compiler.f77 is None) or (self.compiler.fc is None):
336 raise InstallError(
>> 337 'OpenMPI requires both C and Fortran compilers!'
338 )
See build log for details:
/Users/youssefmoawad/Downloads/spack/var/spack/stage/openmpi-3.1.3-6owrpmticip3filnaljkrsyl3zlonwea/openmpi-3.1.3/spack-build.out
当我无视它并尝试使用spack install charmpp
安装Charm ++时,我得到:
Error: TypeError: expected str, bytes or os.PathLike object, not NoneType
/Users/youssefmoawad/Downloads/spack/var/spack/repos/builtin/packages/charmpp/package.py:173, in install:
170 # here.
171 options = [
172 os.path.basename(self.compiler.cc),
>> 173 os.path.basename(self.compiler.fc),
174 "-j%d" % make_jobs,
175 "--destination=%s" % prefix,
176 ]
See build log for details:
/Users/youssefmoawad/Downloads/spack/var/spack/stage/charmpp-6.8.2-g3j72njzqjejhutygtdksfdy6sp524us/charm-v6.8.2/spack-build.out
我不确定出什么问题,但是我认为这与Fortran编译器有关,在这种情况下,我可以在安装哪种编译器方面获得帮助吗?
更新
我尝试安装gfortran
编译器,但安装成功,但是仍然遇到上述错误。
答案 0 :(得分:0)
您使用的是正确的构建线。问题可能是与C ++编译器不兼容,例如Charm ++向编译器传递了错误的标志。常规构建不需要gfortran。如果您可以显示var the_material = new THREE.ShaderMaterial( { uniforms: u, vertexShader: vs, fragmentShader: fs ,name:id} );
中显示的任何错误,将很有帮助。如果事实证明是错误,则可能需要在邮件列表或论坛(https://charm.discourse.group)中进行报告。
在macOS上安装Charm ++的另一种方法是使用charm4py:config.log
。它带有作为共享库编译的Charm ++,但通过Python接口使用,因此可能不是您想要的。