LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing, compiling from source (https://www.linuxquestions.org/questions/linux-newbie-8/installing-compiling-from-source-40246/)

illtbagu 01-03-2003 10:43 PM

installing, compiling from source
 
ok i have not had any luck doing this yet. im trying to install out_lame-0.2.1.tar.gz it is a plug in for xmms. i know the procedure ./configure, make and make install. how do i properly extract these compressed files into a directory. if i open the file up with ark and copy the files and paste them into a directory i get files with the same names so they get overwritten. can i do this from the terminal.

thanks,
AD

iceman47 01-03-2003 10:55 PM

copy the tar file into the directory you need it (with cp)
then tar zxvf out_lame-0.2.1.tar.gz
then cd into it and ./configure ...

illtbagu 01-03-2003 11:10 PM

well here is a error if someone is interested in helping a newbie. it would tickle me pink. well like blue (in the face) instead.

[joe@dhcp-338-33 joe]$ su
Password:
[root@dhcp-338-33 joe]# ls
Desktop evolution Mail plugin131_02.trace
[root@dhcp-338-33 joe]# cd Desktop
[root@dhcp-338-33 Desktop]# ls
CD%2fDVD-ROM out_lame
Directory out_lame-0.2.1.tar.gz
Directory3 ROOT BROWSE
firestarter-0.9.0-1.i386.rpm Start Here
Floppy Trash
gcc-3.2.1 xmms-1.2.7-13.p.src.rpm
Home xmms-1.2.7-1.i386.rpm
kwrite root xmms-mpg123-1.2.7-13.i386.rpm
Mozilla xmms-plugpack-3.1-1.i386.rpm
MPlayer-0.90rc2
[root@dhcp-338-33 Desktop]# cd out_lame
[root@dhcp-338-33 out_lame]# ls
aclocal.m4 config.log COPYING ltmain.sh missing
AUTHORS config.status INSTALL macros mkinstalldirs
ChangeLog config.sub install-sh Makefile NEWS
config.cache configure libtool Makefile.am README
config.guess configure.in ltconfig Makefile.in src
[root@dhcp-338-33 out_lame]# ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ranlib... (cached) ranlib
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... (cached) no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for objdir... .libs
checking for dlfcn.h... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) no
creating libtool
loading cache ./config.cache
checking for xmms-config... (cached) no
checking for XMMS - version >= 1.2.4... no
*** The xmms-config script installed by XMMS could not be found.
*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the XMMS_CONFIG environment variable to the
*** full path to xmms-config.
checking for glib-config... (cached) no
checking for GLIB - version >= 1.2.2... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
checking for gtk-config... (cached) no
checking for GTK - version >= 1.2.2... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
checking for libmp3lame... yes
checking for prefix by checking for xmms... (cached) /usr/bin/xmms
checking for working const... (cached) yes
checking for vprintf... (cached) yes
creating ./config.status
creating Makefile
creating src/Makefile
[root@dhcp-338-33 out_lame]# make
Making all in src
make[1]: Entering directory `/home/joe/Desktop/out_lame/src'
/bin/sh ../libtool --mode=compile gcc -DHAVE_VPRINTF=1 -I. -I. -g -O2 -Wall -c out_lame.c
gcc -DHAVE_VPRINTF=1 -I. -I. -g -O2 -Wall -Wp,-MD,.deps/out_lame.pp -c out_lame.c -fPIC -DPIC -o out_lame.lo
out_lame.c:21:21: gtk/gtk.h: No such file or directory
out_lame.c:25:25: xmms/plugin.h: No such file or directory
out_lame.c:26:27: xmms/xmmsctrl.h: No such file or directory
out_lame.c:27:29: xmms/dirbrowser.h: No such file or directory
out_lame.c:28:29: xmms/configfile.h: No such file or directory
out_lame.c:29:23: xmms/util.h: No such file or directory
out_lame.c:31:23: lame/lame.h: No such file or directory
out_lame.c:37: parse error before '*' token
out_lame.c:37: warning: type defaults to `int' in declaration of `configure_win'
out_lame.c:37: warning: type defaults to `int' in declaration of `path_vbox'
out_lame.c:37: warning: data definition has no type or storage class
out_lame.c:38: parse error before '*' token
out_lame.c:38: warning: type defaults to `int' in declaration of `path_hbox'
out_lame.c:38: warning: type defaults to `int' in declaration of `path_label'
out_lame.c:38: warning: type defaults to `int' in declaration of `path_entry'
out_lame.c:38: warning: type defaults to `int' in


bla bla bla on and on
until the end which says


> [root@dhcp-338-33 out_lame]# out_lameout_lame:1688: warning: implicit declaration of function `gtk_widget_show_all'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 4: syntax error: unexpected end of file
bash: [root@dhcp-338-33: command not found
[root@dhcp-338-33 out_lame]# make[1]: *** [out_lame.lo] Error 1
bash: make[1]:: command not found
[root@dhcp-338-33 out_lame]# make[1]: Leaving directory `/home/joe/Desktop/out_lame/src'
> make: *** [all-recursive] Error 1
> [root@dhcp-338-33 out_lame]# out_lameout_lame:1688: warning: implicit declaration of function `gtk_widget_show_all'
> make[1]: *** [out_lame.lo] Error 1
> make[1]: Leaving directory `/home/joe/Desktop/out_lame/src'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 4: syntax error: unexpected end of file
bash: make[1]:: command not found
[root@dhcp-338-33 out_lame]# make: *** [all-recursive] Error 1
bash: make:: command not found
[root@dhcp-338-33 out_lame]#

like i said before still havent been able to install something from source yet.

thanks for any help.
blue in the face.
AD

wdingus 01-03-2003 11:34 PM

Your comment shows RedHat 8.0 I'm suspecting you've installed with some type of desktop setting or similar without much in the way of development tools. You'd have the same problem under MS Windows if you downloaded "source" code of a program and tried to compile/link/install it. You'd need to have the right compiler, development libraries, etc...

In your specific case you don't have make, automake, autoconf and a few other fairly vital things. Install quite a bit more development tools and try again. Or, try to find a binary of whatever you're trying to install instead of the source version... I have these packages installed in RH8 which I think you do not.

# rpm -qf /usr/bin/autoconf
autoconf-2.53-8
# rpm -qf /usr/bin/automake
automake-1.6.3-1
# rpm -qf /usr/bin/make
make-3.79.1-14

PS. "rpm -qf FILE" returns the package containing FILE...

illtbagu 01-03-2003 11:51 PM

you must be right. why, because when i initially installed red hat 8.0 i didn't install the development tools. I'm not a developer so i figured that i didn't need them. well easy enough fix just reinstall the default packages for development using package management.

well sir i have tried this with no luck. when i try to update my packages by selecting the development tools i get a error that says:

Package Not Found

The following package could not be found on your system. Installation cannot continue until it is installed.

unlocatable package required by
krb5-libs = 1.2.5-6 krb5-devel

i have started several links trying to solve this problem with not solution as of yet. so what i had done was installed the gcc.rpm package from red hats site.

thanks for your time I'm told a complete reinstall of my system is needed. here is the previous discussion i started here.
http://www.linuxquestions.org/questi...threadid=39904

yngwin 01-04-2003 06:56 AM

So... Lesson learnt today: whoever you are, when installing linux, always install the development packages too. Because someday, you may want to install a package from source and then you need them.

wdingus 01-04-2003 07:58 AM

Perhaps you shouldn't start "several" threads which are all pretty much related, just a thought... Re-installation and choosing the development tools will indeed solve your problem I'd say. That's a pretty severe solution unless you've just installed recently and don't really have anything customized yet though. In the other thread you mentioned installing krb5-libs when it sounds like what it was asking for was krb5-libs-devel. They're 2 separate/different packages... one is the compiled ready-to-go libraries and the other is the source and header files needed for "devel"opment work... Things to be able to compile/link to these libraries.

yngwin: Yes, I almost always do an "everything" install... Takes about 4GB in /usr and disk space these days is cheap. No matter what I might need in the future, with "everything" installed I'll probably have it available.

iceman47 01-04-2003 08:28 AM

Quote:

Originally posted by wdingus
No matter what I might need in the future, with "everything" installed I'll probably have it available.
I don't really like to have 10 editors, 2 office suites, 5 browsers and a ton of other apps I don't need. But I can understand people installing all available development packages

yngwin 01-04-2003 10:58 AM

For a newbie it could be a good idea to install a lot (everything except the server stuff), and have a look around. Then you decide what you want to keep and what to leave out next time. At least don't skip the standard development packages.

How else will you know you which editor, wm, office programs, browser, etcetera you like? But once you do, it doesn't make much sense to install it all, as you say.

bulliver 01-04-2003 01:39 PM

I have learned to do an "everything" install. As wdingus said, "disk space is cheap". I was concerned about having MBs (maybe GBs) of crap i'll never use, but everytime you try to do an install from source (or even rpm) "blah blah is needed". What a pain in the ass. If you have the space, install everything, as it will save a lot of headaches down the road. (besides, nothing is cooler than needing an app, then realising it's already installed)

illtbagu 01-04-2003 05:15 PM

ok reinstalled red hat 8.0
./configure, make, make install

now when i try to execute mplayer from the command line i get this i would expect to see some sort of grafical program but instead nothing is exicuted. what am i doing wrong or what have i not done. thanks for any replys.

AD

[joe@dhcp-338-33 joe]$ mplayer
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer 0.90rc2-3.2 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Intel Pentium 4 Willamette (Family: 8, Stepping: 10)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/joe/.mplayer/config
Reading /home/joe/.mplayer/codecs.conf: can't open '/home/joe/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 49 audio & 125 video codecs
Usage: mplayer [options] [url|path/]filename

Basic options: (see the man page for the complete list)
-vo <drv[:dev]> select video output driver & device (see '-vo help' for list)
-ao <drv[:dev]> select audio output driver & device (see '-ao help' for list)
-vcd <trackno> play VCD (Video CD) track from device instead of plain file
-dvd <titleno> play DVD title from device instead of plain file
-alang/-slang select DVD audio/subtitle language (by 2-char country code)
-ss <timepos> seek to given (seconds or hh:mm:ss) position
-nosound don't play sound
-fs -vm -zoom fullscreen playing options (fullscr,vidmode chg,softw.scale)
-x <x> -y <y> set display resolution (for use with -vm or -zoom)
-sub <file> specify subtitle file to use (see also -subfps, -subdelay)
-playlist <file> specify playlist file
-vid x -aid y options to select video (x) and audio (y) stream to play
-fps x -srate y options to change video (x fps) and audio (y Hz) rate
-pp <quality> enable postprocessing filter (see the man page for details)
-framedrop enable frame dropping (for slow machines)

Basic keys: (see the man page for the complete list, also check input.conf)
<- or -> seek backward/forward 10 seconds
up or down seek backward/forward 1 minute
pgup or pgdown seek backward/forward 10 minutes
< or > step backward/forward in playlist
p or SPACE pause movie (press any key to continue)
q or ESC stop playing and quit program
+ or - adjust audio delay by +/- 0.1 second
o cycle OSD mode: none / seekbar / seekbar+timer
* or / increase or decrease pcm volume
z or x adjust subtitle delay by +/- 0.1 second
r or t adjust subtitle position up/down, also see -vop expand

* * * SEE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS! * * *


All times are GMT -5. The time now is 04:01 PM.