1 | initial version |

Could you try the following:

Open a bash-terminal and set the following environment variable:

```
export SAGE_MATHEMATICA_COMMAND="/run/media/bernhardi/math/math -rawterm"
```

Then run SageMath from that terminal (either in console or notebook mode) and try some Mathematica command. If this works, you might add the above export command at the end of your `.bashrc`

file.

2 | No.2 Revision |

Could you try the following:

Open a bash-terminal and set the following environment variable:

```
export SAGE_MATHEMATICA_COMMAND="/run/media/bernhardi/math/math -rawterm"
```

Then run SageMath from that terminal (either in console or notebook mode) and try some Mathematica command. If this works, you might add the above export command at the end of your `.bashrc`

file.

** Comment:** I am not using Mathematica and don't have it installed on my computer; I came to this answer by taking a look at the source code of SageMath's

`mathematica`

command, which one can easily access via the double question mark:```
sage: mathematica??
```

3 | No.3 Revision |

Could you try the following:

Open a bash-terminal and set the following environment variable:

```
export SAGE_MATHEMATICA_COMMAND="/run/media/bernhardi/math/math -rawterm"
```

Then run SageMath from that terminal (either in console or notebook mode) and try some Mathematica command. If this works, you might add the above export command at the end of your `.bashrc`

file.

** Comment:** I am not using Mathematica and don't have it installed on my computer; I came to this answer by taking a look at the source code of SageMath's

`mathematica`

command, which one can easily access via the double question ```
sage: mathematica??
```

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.