LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-08-2017, 02:46 PM   #1
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Rep: Reputation: 9
Problems installating a shell


I created a shell coded in Perl and, to distribute it, I need to make a installation mechanism to it, i am new to this thing.

The problems I had is that I don't know in witch folder I should install the shell, since is a shell and not a common program, if I need to install the content in separate folders, etc.

Also, if you know any utility or module that would help with this it would be great.

The shell folder looks like:

structure of folder:
- init.pl (the script that starts the shell)
various readme, changelog, etc.
- a folder with all the libraries and scripts that the shell need.

I discovered that i must install a executable in /bin, since is a shell, a essential program for the system, but, I install the files too in /bin or only the executable? Can I simply drag the "init" script (ensuring is executable) in /bin and write it to use the complementary scripts stored in, for example, /usr/bin? I heard that in /bin only are stored executables.

Last edited by TheStr3ak5; 07-08-2017 at 02:57 PM.
 
Old 07-08-2017, 04:17 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
The script should go in /usr/bin or /usr/local/bin. The custom libraries should go in /usr/lib.
 
Old 07-08-2017, 06:26 PM   #3
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by AwesomeMachine View Post
The script should go in /usr/bin or /usr/local/bin. The custom libraries should go in /usr/lib.
Thanks for reply, i find very strange dont use the folder /bin because is a shell and, for example, bash executable is installed there, but ok, i will use that distribution, thanks again!
 
Old 07-08-2017, 09:42 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
the /bin directory is for standard Linux tools that are the same (or almost the same) across distros. /usr/bin is for other programs. And /usr/local/bin is for user-generated programs or custom installs.
 
Old 07-09-2017, 08:16 PM   #5
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 472

Rep: Reputation: 150Reputation: 150
Quote:
the /bin directory is for standard Linux tools that are the same (or almost the same) across distros. /usr/bin is for other programs
On many if not most distributions /bin has been merged into /usr/bin. This was called the /usr merge and was done many years ago on Fedora, Debian, Ubuntu ...

On Centos 7

Code:
$ ll /bin
lrwxrwxrwx 1 root root 7 Dec 13  2016 /bin -> usr/bin
I would put this shell in /usr/local/bin.
 
  


Reply

Tags
installation, makefile, shell


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
installating slackware help travail21 Slackware - Installation 3 05-17-2012 04:33 AM
installating VMware on RHEL5 amit_kalipur Linux - Laptop and Netbook 1 02-25-2009 08:32 AM
installating xine tannu_ah Fedora 12 11-01-2008 03:14 PM
Installating Help Teoryn Slackware 3 01-25-2004 02:48 PM
Installating: FREEZES penquin_kid Linux - Software 4 02-16-2002 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:24 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