如何在mac os x上安装量子计算语言? [英] How to install quantum computation language on mac os x?

查看:516
本文介绍了如何在mac os x上安装量子计算语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装QCL 0.6.3(可从 http:// tph .tuwien.ac.at /〜oemer / qcl.html )on mac os 10.7.2。我安装了开发工具,可以在c中进行基本编程,但我不知道很多关于makefiles等。



安装说明如下:



除了通常的C ++开发工具,你需要在系统上安装flex,
bison和(可选)GNU readline。 p>

解开源程序包,然后cd到QCL目录,根据需要编辑
Makefile并输入make make install



这将默认安装二进制qcl到/ usr / local / bin和
QCL包含文件到/ usr / local / lib / qcl。



对于绘图支持,libplotter(GNU libplot的C ++绑定)
是必需的。 GNU libplot是GNU plotutils的一部分。



从版本0.4.3起,QCL还包括对TeXmacs
数学文本编辑器的支持。最近的TeXmacs发行版(1.0.0.6或
newer)已经提供了必要的接口,因此不需要额外的
安装。


我认为flex和bison是自动在mac os x?



当我键入make时,我收到一个错误:

  g ++ -c -Wall -O2 -g -DQCL_DEBUG -DQC_DEBUG -DQCL_PLOT -DQCL_USE_READLINE -DQCL_IRQ -Iqc -DDEF_INCLUDE_PATH =\/ usr / local / lib / qcl\-c -o error.o error.cc 
error.cc:在函数'void initialize_readline()':
error.cc:39:error:'rl_unbind_key'没有在此范围内声明
make: *** [error.o]错误1

任何帮助,一般提示或特定说明赞赏。

解决方案

感谢您的评论Paul。当我做了一些更多的垃圾,我发现编辑makefile允许我编译程序。我注释掉了makefile的绘图支持和readline支持部分。然后它运行良好,似乎帮助


I am trying to install QCL 0.6.3 (available from http://tph.tuwien.ac.at/~oemer/qcl.html) on mac os 10.7.2. I have developer tools installed and can do basic programming in c but I don't know a lot about makefiles and such.

The installation instructions are below:

Besides the usual C++ development tools, you will need to have flex, bison and (optionally) GNU readline installed on your system.

Untar the source package, then cd to the QCL directory, edit the Makefile for your needs and type make make install

This will, by default, install the binary qcl to /usr/local/bin and the QCL include files to /usr/local/lib/qcl.

For plotting support, libplotter (the C++ bindings of of GNU libplot) is required. GNU libplot is part of the the GNU plotutils.

Since version 0.4.3, QCL also includes support for the TeXmacs mathematical text editor. Recent TeXmacs distributions (1.0.0.6 or newer) already provide the necessary interfaces, so no additional installation is required.

I think that flex and bison are automatically in mac os x? Not sure about readline or libplotter?

When I type make I receive back an error:

g++ -c  -Wall -O2 -g -DQCL_DEBUG -DQC_DEBUG -DQCL_PLOT -DQCL_USE_READLINE -DQCL_IRQ -Iqc -DDEF_INCLUDE_PATH="\"/usr/local/lib/qcl\""   -c -o error.o error.cc
error.cc: In function ‘void initialize_readline()’:
error.cc:39: error: ‘rl_unbind_key’ was not declared in this scope
make: *** [error.o] Error 1

Any help, general hints, or specific instructions would be appreciated.

解决方案

Thanks for the comment Paul. When I did some more mucking around I found that editing the makefile did allow me to compile the program. I commented out the plotting support and the readline support sections of the makefile. Then it ran fine and seems to help with

这篇关于如何在mac os x上安装量子计算语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆