I've got a linux server running RStudio, and I'm trying to connect to an SQL Anywhere database.
I have the drivers installed and configured, and I can connect using iSQL. When trying through RStudio, I continually get this error:
Error: nanodbc/nanodbc.cpp:983: 00000: [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed
However, if I launch an R script straight from /opt/bin/r/rscript, it connects.
The same thing happens when trying to connect with Python through a conda environment in my home directory. However, if I launch by typing "python test.py" into the terminal, the connection succeeds.
I'm on Ubuntu 18.04 with the SQL Anywhere 17 drivers. Any ideas would be appriciated.
Thanks.