Skip to content

Instantly share code, notes, and snippets.

@dinesh16
Last active February 26, 2019 10:37

Revisions

  1. dinesh16 revised this gist Jun 5, 2018. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions free_tds.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    ```
    #!/bin/bash
    # Install FreeTDS on Codeship - http://www.freetds.org

    @@ -22,8 +21,8 @@ fi
    ln -s "${TDS_DIR}/bin/"* "${HOME}/bin"
    ```
    then
    ```
    # run this as `bash path_to_file` and then run below comand
    bundle config build.tiny_tds --with-freetds-lib=/home/rof/cache/freetds/lib --with-freetds-include=/home/rof/cache/freetds/include
    ```
  2. dinesh16 created this gist Jun 5, 2018.
    29 changes: 29 additions & 0 deletions free_tds.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    ```
    #!/bin/bash
    # Install FreeTDS on Codeship - http://www.freetds.org
    TDS_DIR=${TDS_DIR:=$HOME/cache/freetds}
    set -e
    if [ ! -d "${TDS_DIR}" ]; then
    mkdir -p "${HOME}/freetds"
    wget "ftp://ftp.freetds.org/pub/freetds/stable/freetds-patched.tar.gz"
    tar -xaf "freetds-patched.tar.gz" --strip-components=1 --directory "${HOME}/freetds"
    (
    cd "${HOME}/freetds" || exit 1
    ./configure --prefix="${TDS_DIR}"
    make
    make install
    )
    fi
    ln -s "${TDS_DIR}/bin/"* "${HOME}/bin"
    ```

    then

    ```
    bundle config build.tiny_tds --with-freetds-lib=/home/rof/cache/freetds/lib --with-freetds-include=/home/rof/cache/freetds/include
    ```