LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2004, 09:49 AM   #1
GiaCo
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Rep: Reputation: 0
executing a downloaded file?


Ok so this is probably the most stupid question in the world, but I am having huge problems executing downloaded files in Fedora Core 2. My most recent disaster has been with Kile-and IDE for latex. i have downloaded two different versions of it, but they will not start with ./filename at the command line, can anybody tell me what i am doing wrong?

]thanks,
 
Old 10-22-2004, 10:09 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
they might not be set as executable.

chmod +x file
./file

or

sh file
 
Old 10-23-2004, 03:05 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you downloaded 'kile', it was probably either an rpm package or a tarballed source directory that you downloaded. What was the exact file name that you downloaded? With a .rpm file you need to install it with a package manager or the 'rpm' command. If it was a tarball you need to extract the directory, and follow the instructions in the README and INST-LL files.

For kile, that would be the instruction sequence of
tar xvzf kile-<version>.gz
cd kile-<version>.gz
./configure
make
su
******* # root password
make install

Read through the INSTALL and README file to make sure this sequence is correct.
A simpler program may just have a Makefile. I've run across some tarballs where there wasn't a 'configure' file buy there was a config.in file, and I needed to run the
command 'autoconf' to produce the 'configure' script.

A tarball installation will probably put the files in the /usr heirarchy. You can run the command 'find /usr -cmin -5' to find new files and directories produced in the last 5 minutes.
The executable will probably be copied into either /usr/bin or /usr/local/bin. There will more often than not also be man files installed, and sometimes library files. For a program like kile, also icons files in /usr/share. But you may need to install the k-menu entry yourself.

On occasion, I've needed to run the 'ldconfig' command as root, so that the new library paths would be registered.

Another type of installation will run an automated install script. NVidia drivers and the Firefox browser may use this type of installation method.

Last edited by jschiwal; 10-23-2004 at 03:14 AM.
 
Old 10-25-2004, 08:34 AM   #4
GiaCo
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Hi there,

thanks for your reply. It's an rpm that i have downloaded, kile-1.6.3-0.fdr.1.2.src.rpm. Can you tell me what this "rmp command" is?

thanks,
 
Old 10-25-2004, 08:43 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the rpm command is.. rpm.
Code:
rpm -Uvh blah.rpm
to install.
 
Old 10-25-2004, 09:27 AM   #6
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
or
Code:
rpm -ivh blah.rpm
i = install
U = upgrade if it exists, install otherwise
v = verbose output to console
h = hash thingies (####) to show progress of installation

Last edited by student04; 10-25-2004 at 09:28 AM.
 
Old 10-25-2004, 09:35 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The file you downloaded is a source rpm. You might want to download an .RPM for your distro that doesn't have the .src. in the name.
 
  


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
Executing a .deb file Wolvenmoon Debian 1 08-18-2005 10:50 PM
Downloaded File now what? rixride00 Linux - Newbie 17 05-02-2005 04:05 PM
finding downloaded file and... j_carmona Linux - Newbie 5 04-28-2005 06:51 PM
executing file dontknowshit Mandriva 2 06-10-2004 08:28 PM
executing a file pantera Programming 1 05-25-2004 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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