LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-07-2021, 03:25 PM   #1
Tsuga
Member
 
Registered: Jul 2020
Distribution: Slackware64 15.0
Posts: 63

Rep: Reputation: Disabled
How to change the directory installed to when installing from source?


I am installing JAGS from source on Slackware64 14.2. I extracted the file to /tmp/jags. As root, I moved to the folder created and ran
Quote:
./configure
make
make install
It all seemed to work.

In R, I am trying to install rjags now. The installation fails with

Quote:
error: File not found: /usr/local/lib64/JAGS/modules-4/basemod.so
That's probably because JAGS is in /usr/local/lib/JAGS instead of lib64, where R seems to be looking.

I did add /usr/local/lib to /etc/ld.so.conf (that was advice from JAGS docs), but R still keeps looking for JAGS in lib64, so I figure it's best to just put it there.

How can I direct the installation of JAGS to /usr/local/lib64, instead of /usr/local/lib? The JAGS directory has Makefiles, config.___, configure, and install-sh and I don't know which one tells JAGS to create the lib in .../lib and not .../lib64. Can I just add an attribute to "configure" or "make" to say where JAGS should rest once installed? For example
Code:
./configure --lib=/usr/local/lib64
or something like that? If I can, how exactly should it read?

Last edited by Tsuga; 08-07-2021 at 03:27 PM. Reason: add info
 
Old 08-07-2021, 03:55 PM   #2
tauon
Member
 
Registered: Jun 2020
Distribution: Slackware
Posts: 82

Rep: Reputation: Disabled
I don't know how JAGS works, but from the general knowledge I would propose to install it as an R package, or configure JAGS with a certain prefix (./configure --prefix=USR_LIKE_PATH) and install it into a some subdirectory of your home, and then add your newly created libdir into LD_LIBRARY_PATH.
 
Old 08-07-2021, 04:02 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,269

Rep: Reputation: 5341Reputation: 5341Reputation: 5341Reputation: 5341Reputation: 5341Reputation: 5341Reputation: 5341Reputation: 5341Reputation: 5341Reputation: 5341Reputation: 5341
Code:
./configure --libdir=/usr/local/lib64
 
2 members found this post helpful.
Old 08-08-2021, 08:15 AM   #4
Tsuga
Member
 
Registered: Jul 2020
Distribution: Slackware64 15.0
Posts: 63

Original Poster
Rep: Reputation: Disabled
@taoun, thanks for your suggestion. R requires JAGS installed before the rjags package can be in installed in R, so I had to get JAGS installed first. I have more than one user on this computer and I wanted both to available for the system. Your solution works for one user and I'm sure there is a way to make that available so other users can apply it, but I thought a more general installation would just be easier.

@dugan, Thanks!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I installed SLES 15 on Azure VM and installed SAP. I now see weird display for the directory permission. I attached screenshot. sarankennet Linux - Server 6 10-08-2019 10:33 AM
Installed scanner driver, scans sent to /root directory, change destination? gentleman.X Linux - Newbie 2 05-03-2013 12:08 PM
ProFTPd can't change directory "no such file or directory" mpmackenna Linux - Server 2 05-04-2010 03:52 PM
change default vsftp anonymous accout directory /var/ftp to other directory? hocheetiong Linux - Newbie 2 01-24-2010 06:33 PM
UK Finance Directory,Online Finance Directory,UK Finance,Finance Directory in UK seekuk General 1 12-30-2005 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration