Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8600857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:42:37+00:00 2026-06-12T01:42:37+00:00

I am trying to get PL/R running on a linux server where I do

  • 0

I am trying to get PL/R running on a linux server where I do not have root access. The installation itself works fine using the command below:

LD_INCLUDE_PATH="$HOME/pgsql/include" LD_LIBRARY_PATH="$HOME/pgsql/lib:$HOME/lib/R/lib" PGDATA="$HOME/usr/pgsql/data" PG_LIB_DIR="$HOME/pgsql/lib" R_HOME="$HOME/lib/R" USE_PGXS=1 make

When I try to add the plr extension to a database with CREATE EXTENSION plr; however, I get the following error:

ERROR: could not load library "~/lib/postgresql/plr.so": libR.so: cannot open shared object file: No such file or directory

I read on the bottom of the install documentation page that I should add the library path to the LD config file /etc/ld.so.conf, but I do not have root access and I can not change this file.

Is there a workaround for this?

thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T01:42:39+00:00Added an answer on June 12, 2026 at 1:42 am

    You need to set LD_LIBRARY_PATH="$HOME/pgsql/lib:$HOME/lib/R/lib" at run-time in the PostgreSQL server’s environment. Since you appear to be running PostgreSQL out of your home directory under your own user ID that should be as easy as exporting the environment variable before running pg_ctl, eg:

    LD_LIBRARY_PATH="$HOME/pgsql/lib:$HOME/lib/R/lib" pg_ctl -D the_datadir start
    

    Alternately you could see if you can re-compile PL/R with rpath linking enabled, so plr.so has a path to libR.so embedded in it by the linker at compile time. Pass the -rpath option in LDFLAGS or pass -Wl,-rpath in CFLAGS. See -rpath in man ld and -Wl in man gcc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just trying to get simple http server running and have no clue about ruby
I have a simple rails 2.3.4 application I am trying to get running with
I'm trying to get Django running on GAE using this tutorial . When I
Im trying to get gnuplot up running for C++ environment in XCode. Im using
I'm trying to get a FacebookLoginTest running. Problem is: the Symfony2 client does not
My server is on hostgator running on a linux centOS. I'm simply trying to
I'm a Linux noop, and I was trying to get monodevelop up and running
I'm trying to get RoR installed on my Ubuntu install and have it running
I'm completely new to Linux and have been trying to get my (Windows built)
Trying to install Cython on a small VPS running Ubuntu Server. Did sudo apt-get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.