How to install quantum computation language on mac os x?

故事扮演 提交于 2019-12-23 03:03:57

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/7905898/how-to-install-quantum-computation-language-on-mac-os-x

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!