我想在Julia中使用ProfileView来查看哪个功能运行最慢。
要以图形方式表示探查器的结果,我发现ProfileView很方便(如在多个论坛中所讨论的),而无需在文本行之间滚动。
当我执行以下操作
Pkg.add("ProfileView")
抛出此错误:
Error: Error building `Cairo`, showing the last 100 of log:
│ checking for gcc option to produce PIC... -fPIC -DPIC
│ checking if gcc PIC flag -fPIC -DPIC works... yes
│ checking if gcc static flag -static works... yes
│ checking if gcc supports -c -o file.o... yes
│ checking if gcc supports -c -o file.o... (cached) yes
│ checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
│ checking whether -lc should be explicitly linked in... no
│ checking dynamic linker characteristics... GNU/Linux ld.so
│ checking how to hardcode library paths into programs... immediate
│ checking whether stripping libraries is possible... yes
│ checking if libtool supports shared libraries... yes
│ checking whether to build shared libraries... yes
│ checking whether to build static libraries... no
│ checking how to run the C++ preprocessor... c++ -E
│ checking for ld used by c++... /usr/bin/ld -m elf_x86_64
│ checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
│ checking whether the c++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
│ checking for c++ option to produce PIC... -fPIC -DPIC
│ checking if c++ PIC flag -fPIC -DPIC works... yes
│ checking if c++ static flag -static works... yes
│ checking if c++ supports -c -o file.o... yes
│ checking if c++ supports -c -o file.o... (cached) yes
│ checking whether the c++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
│ checking dynamic linker characteristics... (cached) GNU/Linux ld.so
│ checking how to hardcode library paths into programs... immediate
│ configure: creating ./config.lt
│ config.lt: creating libtool
│ checking for some Win32 platform... no
│ checking for pkg-config... /usr/bin/pkg-config
│ checking pkg-config is at least version 0.9.0... yes
│ checking for HARFBUZZ... no
│ no
│ checking for CoreText availability... no
│ checking for CAIRO... yes
│ checking which cairo font backends could be used... none
│ configure: Disabling cairo support
│ configure: error: *** Could not enable any backends.
│ *** Must have at least one backend to build Pango.
我尝试做
Pkg.build("Cairo")
但是,出现相同的错误。任何建议或见解均会受到赞赏
系统信息:
Linux 2.6.32-754.9.1.el6.x86_64 #1 SMP Wed Nov 21 15:08:21 EST 2018 x86_64 x86_64
x86_64 GNU/Linux