LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-14-2008, 07:39 AM   #1
deathalele
Member
 
Registered: May 2008
Location: deep dark north wales
Distribution: Zenwalk
Posts: 162

Rep: Reputation: 30
how can i install a program i made.


I have written a basic using python and bash and would like to run it by just typing the name in the terminal.
also how would i package it as a source code o others can install it using the 'make' and 'make install' commands.

thanks in advance
 
Old 09-14-2008, 08:53 AM   #2
rubadub
Member
 
Registered: Jun 2004
Posts: 236

Rep: Reputation: 33
You don't use make with python, it has it's own setup stuff,
see this and this, or along those lines... Otherwise you might want to package it in an rpm.

For it to execute from the terminal it'll either need to be or linked to some kind of 'bin' directory, which depends upon who can run it.
 
Old 09-14-2008, 11:19 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
To "run" a python program.py :
Command = 'cd "to directory with progam.py"'
and then 'python program.py'

Write a script with the 2 commands, make the
script executable ('chmod +x') and copy it
to /usr/local/bin/
Make an "icon" (a "Desktop Entrance") to start
the script (script.sh)

Regards
 
  


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
Help installing an home made program (that once worked) yabha Linux - Software 2 12-03-2006 08:55 AM
Question/Problem with SDL_ttf program I made... RHLinuxGUY Programming 6 04-26-2006 10:38 PM
Is there something that can transform a program made with php to shell-script? stormrider_may Programming 4 01-31-2006 10:59 AM
I wonder why a program I made with streams is taking so much memory eantoranz Programming 5 04-30-2004 07:37 PM
The best linux program ever made??? Mannyakatheman General 49 03-08-2004 04:27 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:35 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
Open Source Consulting | Domain Registration