LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-06-2019, 11:29 PM   #1
Nick-us
Member
 
Registered: Feb 2019
Distribution: Slackware64-Current
Posts: 47

Rep: Reputation: 8
Question Install a Source in a Portable Folder


Some programs that offer ready-made binaries run in their folders, including their basic dependencies.

I like the Geany Text Editor. Source is available

When we use Slackbuild I understand that the script installs it in a temporary folder to compress at the end.
But I don't know how this is done.

What I would like to do is run the configure and make commands so that Geany and its Plugins are installed in one folder and can run from that portable folder.

Does anyone know how to do this?


 
Old 10-06-2019, 11:53 PM   #2
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,211

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
I have no experience with the Geany Text Editor and I don't know if its configure script (& make files) supports what you're looking after, especially concerned about its plugins location.

However, I do remember that you already asked how to install a program in a specific folder in a recent thread:
https://www.linuxquestions.org/quest...ke-4175660183/
 
Old 10-07-2019, 06:02 AM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,158

Rep: Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992
Use the "-Wl,-rpath,'$ORIGIN'" linker flag to set the executable's library search paths to be relative to its location. Or make an AppImage.

Last edited by dugan; 10-08-2019 at 09:49 AM.
 
2 members found this post helpful.
Old 10-07-2019, 07:00 AM   #4
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: Slackware
Posts: 214

Rep: Reputation: 90
Edit geany.SlackBuild to point --prefix, --libdir, --mandir, and --docdir to the directories where you want to install. Remove "DESTDIR=$PKG" from "make install", and delete everything in the script after "make install".

You can also delete the "chown -R root:root ." and "find ... -exec chmod" if you are installing as a user.

I do this to install programs in ~/.local
Ed
 
3 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
need a portable linux distro to bring on portable usb hard drive... pippo17 Linux - Distributions 3 10-20-2008 06:41 AM
Help sharing folder on portable HDD bparkerson04 Linux - Networking 6 10-02-2008 04:00 AM
A script within a folder to delete the folder, script, and the folder's contents Cyberman Programming 15 10-17-2007 07:32 AM
LXer: Open-source GP2X gaming and media portable review LXer Syndicated Linux News 0 05-28-2006 11:33 PM
LXer: Portable open source software LXer Syndicated Linux News 0 05-17-2006 06:21 AM

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

All times are GMT -5. The time now is 03:34 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration