首页 技术 正文
技术 2022年11月9日
0 收藏 394 点赞 2,910 浏览 1559 个字

环境: mint 19 或者 > ubuntu 18

源代码安装的好处, 可以使用最新版。 mint 19.1 下面, 利用apt 直接安装的maxima版本太老,不支持 draw 函数。

load(draw) $draw2d(
title="Two simple plots",
xlabel="x",ylabel="y",grid=true, color=red,key="A sinus",
explicit(sin(x),x,1,10),
color=blue,line_type=dots,key="A cosinus",
explicit(cos(x),x,1,10)
)$

安装maxima

  • 安装依赖
sudo apt  install  gnuplot-x11 fonts-jsmath
  • 从源代码安装
git clone https://git.code.sf.net/p/maxima/code maxima-code --depth=1
cd maxima-code
sudo apt install gcl # 顺便安装了xemacs21
sudo apt install sbcl # Mac版
sudo apt install automake
sudo apt install texinfo # 缺失命令 makeinfosh bootstrap
./configure --prefix=/opt/maxima --enable-gcl-exec PYTHON=/opt/anaconda3/bin/python
make -j 8
make -j 8 check
sudo make install/opt/maxima/bin/maxima
  • 安装文档
sudo apt-get install calibre
make -C doc/info maxima.epub

安装 wxmaxima

wxWidgets

  • 准备
#git  clone --depth 1 --branch v3.1.2  https://github.com/wxWidgets/wxWidgets.git
git clone --depth 1 --branch v3.0.3 https://github.com/wxWidgets/wxWidgets.git sudo apt install libgtk2.0-dev
sudo apt install libgtk-3-dev
sudo apt install libjpeg-dev libtiff-dev libpng-dev
sudo apt install libsecret-1-dev libnotify-dev
  • 安装
cd wxWidgets/./configure --prefix=/opt/maxima --with-gtk=3  --enable-monolithicmake -j 20sudo make install

wxmaxima

  • 准备
git clone  --depth=1 --branch Version-19.05.7  https://github.com/wxMaxima-developers/wxmaxima.git
sudo apt install libgraphviz-dev
 sudo apt install -y xvfb
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/maxima/lib
sudo ldconfig cd /home/xyq/Desktop/wxmaxima
cd build/ cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/maxima/ ..
cmake --build . sudo cmake --build . -- install

配置一下

# 在 ~/.bashrc 中加入
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/maxima/lib
export PATH="/opt/maxima/bin:$PATH"
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,490
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,905
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,738
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,491
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:8,129
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:5,292