Linux系统安装vtk,如何在Archlinux上安装VTK5?(How to install VTK5 on Archlinux?)

如何在Archlinux上安装VTK5?(How to install VTK5 on Archlinux?)

我需要在我的Archlinux PC上运行一个使用VTK5的程序,但我发现安装VTK5真的很难,官方仓库中只有VTK6(与VTK5不兼容),当我尝试从AUR安装它时,它返回“Makepg无法构建vtk5”,然后我尝试通过源代码安装,结果是我无法安装VTK Python模块......

有没有人对此有任何经验或想法?

I need to run a program which use VTK5 on my Archlinux PC, but I found it really hard to install VTK5, there is only VTK6(not compatible with VTK5) in official repo, and when I try to install it from AUR, it returns "Makepg was unable to build vtk5", then I try to install through source code, the result is that I was unable to install the VTK Python module...

Is there anybody who has any experience or idea about it?

原文:https://stackoverflow.com/questions/29577003

更新时间:2020-01-01 14:40

最满意答案

我没有专门安装在Archlinux上,但是在不同的linux机器上。 如果您从源代码编译并对python感兴趣,请记住在运行cmake时选择python包装选项。 顺便说一句,一旦构建,你将不得不更新pythonpath和ldlibrarypath。

I have not installed on Archlinux specifically, but on different linux machines. If you compile from source and are interested in python, remember to select the option python wrapping when running cmake. Btw, once built, you will have to update both the pythonpath and the ldlibrarypath.

You can also have a try at enthought canopy, which distributes a complete installation with numpy, scipy, vtk http://docs.enthought.com/canopy/quick-start/install_linux.html

2015-04-11

相关问答

1、分区 cfdisk ·新手可以不用分区,如果需要分多个区,建议一个 / 一个/home,如果内存大,不需要swap分区。使用cfdisk分区比较直观。 ·注意【Bootable】,/ 分区一定要Bootable,如果你单独划分了/boot,那这个bootable。 2、格式化 fdisk /dev/sda Command(m or help):p(这里输入p,查看你现在的分区和名字),如下图: 我并没有做更多的分区,因为我是虚拟机。按Ctrl+C 退出fdisk。然后输入下面的命令格式化: m

...

首先下载Archlinux系统iso镜像。 1、分区 cfdisk 新手可以不用分区,如果需要分多个区,建议一个 / 一个/home,如果内存大,不需要swap分区。使用cfdisk分区比较直观。 注意【Bootable】,/ 分区一定要Bootable,如果单独划分了/boot,那这个bootable。 2、格式化 fdisk /dev/sdaCommand(m or help):p(这里输入p,查看你现在的分区和名字),如下图: 按Ctrl+C 退出fdisk。然后输入下面的命令格式化: mk

...

看看archwiki install a boot loader那里,有两种情况:BIOS/MBR和UEFI/GPT,要看机子选。

从内容看你应该下载archlinux-2014.01.05-dual.iso这个ISO 网站中arch/ 目录下面的内容好像是安装包.

主分区加扩展分区最多只能有四个,你分一个扩展分区后才能分逻辑分区,即sdb5,6,7,8

你好Adama指挥官,我的grub安装也失败了,第二个如果能引导的话就用那个吧,没有多大区别,实在想用grub,就进去你安装好的archlinux, #grub 进入grub命令行,然后 #root (hd0,x) ;x 换成你的boot分区,比如sda6 ,改成6 #setup hd0 看到成功的提升应该就行了,但是menu.lst要配置好,不然还是不能引导 然后你的图形化,三个命令行和一个小时钟只是xorg的界面,你是通过startx来启动的吧, 你的图形界面安装的什么啊?Kde的话就用sta

...

brew reinstall --python --qt vtk5 检查brew info以确切了解可用的公式选项。 对于vtk5,您正在寻找的选项是--with-python --with-qt 。 任何无法识别的东西都会被忽略。 brew reinstall --python --qt vtk5 Check brew info for exactly what formula options are available. For vtk5, the options you're looking

...

我没有专门安装在Archlinux上,但是在不同的linux机器上。 如果您从源代码编译并对python感兴趣,请记住在运行cmake时选择python包装选项。 顺便说一句,一旦构建,你将不得不更新pythonpath和ldlibrarypath。 您还可以尝试使用enthought canopy,它可以分配一个完整的安装,包括numpy,scipy,vtk http://docs.enthought.com/canopy/quick-start/install_linux.html I hav

...

我发现(custom-set-faces ...)在这种情况下没有意义,我使用https://superuser.com/中的以下代码并成功。 (set-frame-font "Monaco 14" nil t)

(add-to-list 'default-frame-alist

'(font . "Monaco 14"))

I find the (custom-set-faces ...) doesn't make sense in this case, I use

...

我在VTK的邮件列表上发布了相同的内容,Bernard Giroux的回复也奏效了。 这是它的原因(OS X El Capitan): 使用以下选项运行cmake: cmake -DCMAKE_BUILD_TYPE=Release \

-DCMAKE_INSTALL_PREFIX=/usr/local/VTK-7.0.0 \

-DVTK_WRAP_PYTHON=ON \

-DVTK_PYTHON_VERSION=3 \

-DCMAKE_MACOSX_RPATH=ON \

-DCMAKE_INSTA

...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值