0

Duplicate: I can't make SQSH 2.1.7 with freetds 0.91

I am trying to install sqsh for freetds (SQL Server) as per this answer. I installed freetds under /opt/freetds.

However, I am getting the following error building sqsh:

[noahlz:sqsh-2.4]$ sudo ./configure --prefix=/opt/sqsh 

...

configure: error: Unable to locate Sybase installation. Check your SYBASE environment variable setting.

I tried setting export SYBASE=/opt/freetds to no avail.

Community
  • 1
  • 1
noahlz
  • 10,202
  • 7
  • 56
  • 75
  • 1
    This should help http://stackoverflow.com/questions/7491222/i-cant-make-sqsh-2-1-7-with-freetds-0-91 Thanks & Regards, Alok – linux_fanatic Sep 13 '13 at 10:44

2 Answers2

3

On OS X I'd suggest:

brew install sqsh

Man, I love Hombrew.

Joe Harris
  • 13,671
  • 4
  • 47
  • 54
  • It's been migrated to the "boneyard" unfortunately. https://github.com/Homebrew/homebrew-core/commit/dc07dcfaa89f0ee30d8eddf3ed5cce320c4e9953#Formula/sqsh.rb You can still brew it from there though. https://superuser.com/questions/1110414/install-a-deleted-homebrew-formulae – Joe Harris Jun 06 '17 at 13:29
0

Do not use the sudo command to configure the build environment. Just run

export SYBASE=/opt/freetds
./configure --prefix=/opt/sqsh

I would recommend to add --with-readline as well. Then run

make
sudo make install

So you only need sudo when you want to install the product and need root authorizations to do that. Please note that a newer version sqsh-2.4 is available for download from Sourceforge.

HTH, Martin.

Martin Wesdorp
  • 226
  • 2
  • 3