LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-15-2010, 07:40 PM   #1
bdtagar
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
Wink How to build software from source?


Hi,
I have Fedora 12. I downloaded some software from net and wanted to install them from source. I know how to build and install software, but it doesn't work. I have followed this procedure:
1. ./configure
2. make
3. make install
I have installed all software developement libraries and tools. I myself am Java Developer. Now the problem is that either I am told that their is no make file available or software is not installed properly. Yesterday I built mplayer, it was correctly built, but now I can use it in the original directory in which I built it but can not run it from anywhere. Now either it is not installed in /usr/bin folder or it is but it's path is not set. But help me what should I do. OR point me to the right website url, or give me right software installation procedure.

I will bevery much thankful to you.
Thanks in advance.
Badar
 
Old 08-15-2010, 07:45 PM   #2
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
May I ask which package you are trying to build from source? You may need to post the output of ./configure for me to see if there are any dependencies to consider. There usually is.
 
Old 08-15-2010, 07:55 PM   #3
bdtagar
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for reply,
I am installing:
quicktime4linux-2.0.0-src.tar
vlc-1.1.2.tar
flvplayer
and MPlayer-1.0rc3.tar

I have checked out everything there are no dependencies. But still there are some problems. I have correctly built mplayer but it's not in path. So I cannot call it from anywhere. VLC cannot be built correctly.
Right now I am using net through XP, so I cann't have configure log file to show.
Thanks
Badar
 
Old 08-15-2010, 08:06 PM   #4
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
If you want to reinstall mplayer to a real path (say /usr/bin):

Code:
./configure --prefix=/usr/bin && make && make install
This will ensure that it stays in the PATH variable. Oh, and ./configure will tell you if there are any dependencies or not.
 
Old 08-15-2010, 08:11 PM   #5
bdtagar
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you Mr. Kenny
I will try it. I didn't know about --prefix=/usr/bin option.
Thanks again.
Badar
 
Old 08-15-2010, 08:22 PM   #6
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
Run make install asw root.
 
Old 08-15-2010, 08:24 PM   #7
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
that's "as" root
 
Old 08-15-2010, 11:11 PM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
"--prefix=/usr/bin" is not a good choice. Perhaps Kenny_Straw meant "--prefix=/usr". However this is also not such a good choice since generally that should be reserved for you package manager. I would probably recommend "--prefix=/usr/local", then the executable should end up in /usr/local/bin.

NB. Usually /usr/local will be the default prefix anyway.

If /usr/local/bin is not in your path you can easily add it.
You can check your path with
Code:
echo $PATH
You can add it with something like
Code:
echo 'PATH=/usr/local/bin:$PATH' >> ~/.bash_profile
Cheers,

Evo2.
 
Old 08-16-2010, 08:05 AM   #9
bdtagar
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Hi,
Thanks all.
I tried this command:
./configure --prefix=/usr && make && make install
and it installed mplayer(I wanted to use it for quicktime mov files).
Now I can run my video files in Linux.
But their is one problem, in some other zip files I don't have configure script, or no make file (when I ran make the system replied their is no make file, but there was) then how can I build them?

Thanks in advance.
Badar
 
Old 08-16-2010, 04:16 PM   #10
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
Quote:
But their is one problem, in some other zip files
I don't have configure script, or no make file.
(When I ran make, the system replied: there is no
make file, but there was) then how can I build them ?
There are lots of possibilities : It can be a binary package. Or a java package :
java -jar <file>.jar ( May be not, if you say there's a Makefile.)


Possible commands and scripts to be run to start building Linux software:

'perl Makefile.PL' , 'perl Build.PL' , 'python setup.py build' ,
# 'python setup.py install', 'cmake ..' , 'scons', './waf', 'jam' , 'ant',
'./install', './autogen.sh', './configure' (or 'sh configure') , 'autoreconf -vfi',
'libtoolize && aclocal && autoheader && automake --add-missing && autoconf',
.. etc.

But : Much easier to answer, when you tell, which software, it is.
Name and version, please.
..

Last edited by knudfl; 08-16-2010 at 04:37 PM.
 
Old 08-18-2010, 07:47 AM   #11
bdtagar
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Hi,
Thank you all of you for your responses. I was having a dependencies problem with vlc and quicktimeforlinux software packages. But I have resolved it.
Thank you.
Love God
Love Linux
Badar
 
  


Reply

Tags
build from source



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
cinelerra from source: can't build eantoranz Linux - Software 1 11-09-2007 03:21 AM
What do I do with the rpm if I build from source? krisbee Linux - Newbie 5 12-15-2006 07:23 AM
Audacity source build PCPbSlack Slackware 11 10-29-2006 08:54 PM
build grade from source @ngelot Linux - Software 2 11-26-2005 04:01 AM
where is linux source build directory/kernel source tree? webazoid Linux - Software 2 07-01-2004 08:37 PM

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

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