LinuxQuestions.org
Visit Jeremy's Blog.
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 01-09-2010, 06:15 PM   #1
tygueirn
LQ Newbie
 
Registered: Jan 2010
Distribution: Debian Server
Posts: 10

Rep: Reputation: 0
Equivalent to this command line


Hello

I am founding a command line by following a doc but this doc is a little bit old, since 2006. I need the softwares listed on this command line but I want to install the latest ones, because if I tip this command as is it will install the oldest versions. This command line is :

Code:
sudo apt-get install automake1.4 bison chrpath debhelper flex freetds-dev 
po-debconf libbz2-dev libcurl3-openssl-dev libcurl3-dev libgcrypt11-dev 
libgd2-xpm-dev libgdbm-dev libjpeg62-dev libmhash-dev libncurses5-dev 
libpam0g-dev libpng12-dev libpq-dev librecode-dev libsnmp9-dev libt1-dev 
libwrap0-dev libxmltok1-dev libxslt1-dev re2c unixodbc-dev
Thank you
 
Old 01-09-2010, 06:37 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
I think you are running Debian, and if not you should have put in the effort to complete you profile with the information about the distro you are running.

It is not true that you download old versions. Make sure your sources.list points to stable do apt-get update and the the apt-get command line you found. I don't think you want testing at this moment, it is quite unstable.

Delete packages from the command line which are no longer there. They necessary packages are likely to be pulled in anyway by dependencies.

jlinkels
 
Old 01-09-2010, 07:18 PM   #3
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
Just run the command and tell us any error or warning messages it reports. Don't worry that these may not be the latest versions.

Evo2.
 
Old 01-09-2010, 07:21 PM   #4
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
Look in synaptic for each packages and pick the latest version, yes it will install old version because almost all packages in that command use a "generation" number at the end. Just pick the one without number.
 
Old 01-09-2010, 07:43 PM   #5
tygueirn
LQ Newbie
 
Registered: Jan 2010
Distribution: Debian Server
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you for your replies.

I use Debian server, so I can't access Synaptic or use it. This idea has passed to my mind but I couldn't use it.

Should I try this command ? I mean without version number and hopefully apt-get will search for the latest ones, I have up to date source.list too.

Code:
sudo apt-get install automake bison chrpath debhelper flex freetds-dev 
po-debconf libbz-dev libcur-openssl-dev libcur-dev libgcrypt-dev 
libgd-xpm-dev libgdbm-dev libjpeg-dev libmhash-dev libncurses-dev 
libpam0g-dev libpng-dev libpq-dev librecode-dev libsnmp-dev libt-dev 
libwrap-dev libxmltok-dev libxslt-dev re2c unixodbc-dev
I deleted the version number on the code above, if someone has the command with the latest versions kindly passed it to me please.

Thank you
 
Old 01-09-2010, 07:51 PM   #6
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
Please just tell us what you are trying to do. Perhaps the major version numbers of those libraries are important for your intended use... but we don't know since you've not told us why you are installing them.

EVo2.
 
Old 01-09-2010, 08:39 PM   #7
tygueirn
LQ Newbie
 
Registered: Jan 2010
Distribution: Debian Server
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by evo2 View Post
Please just tell us what you are trying to do. Perhaps the major version numbers of those libraries are important for your intended use... but we don't know since you've not told us why you are installing them.

EVo2.
I am configuring a server. Sorry for this poor answer as the doc I use didn't explain the role of each one it is used meanly for mysqli support along with, exif, gd, jpeg, png and so on. those related to where php should be configured with and so on. I just installed mysql and the server now take this huge configuration, I don't need to know what each library do but it is just important and those libraries has certain role or can be related to achieve certain roles in the future but I ignore any more details as I just follow the doc.

Thank you
 
1 members found this post helpful.
Old 01-09-2010, 09:26 PM   #8
titetanium
Member
 
Registered: Mar 2004
Distribution: debian testing/unstable, devuan, raspberrypi OS
Posts: 68

Rep: Reputation: 16
If you need such informations about each package, aptitude would serve your needs very handily. Just type sudo aptitude and look at the packages and the info below them to see what they do, require, break, recommend, suggest, etc.. and you don't need to run X to use it. Perfect for configuring the server too, I might add.
 
Old 01-09-2010, 09:49 PM   #9
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
Quote:
Originally Posted by tygueirn View Post
I don't need to know what each library do but it is just important and those libraries has certain role or can be related to achieve certain roles in the future but I ignore any more details as I just follow the doc.
Ok, I think that is best. If you don't understand what the libraries are for, then I don't think you are in a position where you should be
ignoring the version numbers stated in the documentation.

If the major version number of the library did not matter then the documentation should not have specified it.

Let us know if you have any problems.

Cheers,

Evo2.
 
Old 01-10-2010, 06:24 AM   #10
tygueirn
LQ Newbie
 
Registered: Jan 2010
Distribution: Debian Server
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by evo2 View Post
Ok, I think that is best. If you don't understand what the libraries are for, then I don't think you are in a position where you should be
ignoring the version numbers stated in the documentation.

If the major version number of the library did not matter then the documentation should not have specified it.

Let us know if you have any problems.

Cheers,

Evo2.
This doc uses php 5.2.3 which is far to be a good thing to install now, there is no new doc related to 2009 for example... for easy tasks like php I did install a latest version e.g. php 5.2.12 because it is handy but those libraries I don't know the replacement.
So as those libraries are old, they may create a incompatibility issue with libraries I replaced with new versions.
Thank you
 
Old 01-10-2010, 08:21 AM   #11
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
I think something is going wrong here. Are you installing packages from source? I see flex and bison among the recommended packages, that is something for compiler building...

I an running a LAMP server, and these are the packages I have installed:

Code:
jlinkels@smc1:~$ dpkg --get-selections | egrep 'apach|mysql|php'
apache2                                         install
apache2-doc                                     install
apache2-mpm-prefork                             install
apache2-utils                                   install
apache2.2-common                                install
libapache2-mod-perl2                            install
libapache2-mod-php5                             install
libapache2-mod-python                           install
libdbd-mysql-perl                               install
libmysqlclient15off                             install
mysql-client                                    install
mysql-client-5.0                                install
mysql-common                                    install
mysql-server-5.0                                install
mysqltcl                                        install
php5                                            install
php5-cli                                        install
php5-common                                     install
php5-mysql                                      install
php5-snmp                                       install
If you enter the names of the packages in the left column on the command line of apt-get (apgt-get apache2 apache2-doc ...) you should get a configuration which is suitable for most task.

Tell us where/what goes wrong in your application if this is not sufficient. You could add phpmyadmin if you want to control mysql from a web browser.

jlinkels
 
Old 01-10-2010, 01:55 PM   #12
tygueirn
LQ Newbie
 
Registered: Jan 2010
Distribution: Debian Server
Posts: 10

Original Poster
Rep: Reputation: 0
Hi

My big issue now on that is I should install php using make/make install by following the doc.

Code:
sudo wget http://uk3.php.net/get/php-5.2.12.tar.bz2/from/uk.php.net/mirror
sudo tar xjvf php-5.2.12.tar.bz2
sudo touch ac*
sudo mkdir /home/tygueirn/configs
sudo ./configure '--prefix=/usr/local/php5' '--with-config-file-path=/home/tygueirn/configs' '--with-apache2' '--with-mysql' '--with-mysqli' '--enable-exif' '--enable-ftp' '--with-gd' '--with-jpeg-dir=..' '--with-png-dir=..' '--enable-mbstring'
sudo make
sudo make install
My big deal is that sudo make 'and sudo make install' won't work, once I tried it I get error : '***make. ..No makefile has been detected. stop'

I searched a bit on php doc I didn't find manual install for Debian as I need to configure my self some dependencies, I won't to just use apt-get install php5 ...

Thank you
 
Old 01-10-2010, 03:59 PM   #13
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
sudo apt-get build-dep php

here is your command line
 
Old 01-10-2010, 08:26 PM   #14
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Debian Stable comes woth PHP 5.2.6. Do you really need PHP 5.2.12? Why won't apt-get install php5 the job? Are there any advanced PHP features you want to use?

jlinkels
 
Old 01-10-2010, 09:13 PM   #15
tygueirn
LQ Newbie
 
Registered: Jan 2010
Distribution: Debian Server
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for your replies, I tries sudo apt-get build-dep php and it installs many things but didn't solve this problem related above. As a server admin I should be able to administer and optimize Mysql as well as Apache. I don't like to install and run without following a guide which explain steps and meaning of each. Next certainly I will configure php.ini but as I said a good knowledge starts from beginning so I want to follow the doc and have a full control of what I install and what I have. The worst is that I didn't see anyone else has this issue except me. In the php-5.2.12 folder when I tip ./buildconf --force I get Forcing buildconf. when I run ./configure '--prefix=/lsphp5' '--with-litespeed' --with-mysql ... I get a huge errors I couldn't find an answer, the only thing I guess is maybe because I am testing from my machine in locale 'I have an internet connection of course but I am not testing on VPS to not corrupt things'. The errors I get are :

Code:
./configure: 9246: checking whether to enable path info checking... : not found
./configure: 9246: 5: Bad file descriptor
./configure: 9246: :: result: yes: not found
./configure: 9246: 6: Bad file descriptor
./configure: 1: :: result: no: not found
./configure: 1: 6: Bad file descriptor
./configure: 1: no: not found
./configure: 10856: 5: Bad file descriptor
./configure: 10856: :: checking for __res_search: not found
./configure: 10856: 6: Bad file descriptor
./configure: 10856: checking for __res_search... : not found
./configure: 1: ac_fn_c_try_link: not found
./configure: 1: 5: Bad file descriptor
./configure: 1: :: result: no: not found
./configure: 1: 6: Bad file descriptor
./configure: 1: no: not found
./configure: 11276: 5: Bad file descriptor
./configure: 11276: :: checking for res_search in -lresolv: not found
./configure: 11276: 6: Bad file descriptor
./configure: 11276: checking for res_search in -lresolv... : not found
./configure: 11276: ac_fn_c_try_link: not found
./configure: 11276: 5: Bad file descriptor
./configure: 11276: :: result: no: not found
./configure: 11276: 6: Bad file descriptor
./configure: 11276: no: not found
./configure: 11276: 5: Bad file descriptor
./configure: 11276: :: checking for __res_search in -lresolv: not found
./configure: 11276: 6: Bad file descriptor
./configure: 11276: checking for __res_search in -lresolv... : not found
./configure: 11276: ac_fn_c_try_link: not found
./configure: 11276: 5: Bad file descriptor
./configure: 11276: :: result: no: not found
./configure: 11276: 6: Bad file descriptor
./configure: 11276: no: not found
./configure: 11276: 5: Bad file descriptor
./configure: 11276: :: checking for res_search in -lbind: not found
./configure: 11276: 6: Bad file descriptor
./configure: 11276: checking for res_search in -lbind... : not found
...
./configure: 11295: 6: Bad file descriptor
./configure: 11295: checking for __inet_aton... : not found
./configure: 1: ac_fn_c_try_link: not found
./configure: 1: 5: Bad file descriptor
./configure: 1: :: result: no: not found
./configure: 1: 6: Bad file descriptor
./configure: 1: no: not found
./configure: 11580: 5: Bad file descriptor
./configure: 11580: :: checking for inet_aton in -lresolv: not found
./configure: 11580: 6: Bad file descriptor
./configure: 11580: checking for inet_aton in -lresolv... : not found
./configure: 11580: ac_fn_c_try_link: not found
./configure: 11580: 5: Bad file descriptor
./configure: 11580: :: result: no: not found
./configure: 11580: 6: Bad file descriptor
./configure: 11580: no: not found
./configure: 11580: 5: Bad file descriptor
./configure: 11580: :: checking for __inet_aton in -lresolv: not found
./configure: 11580: 6: Bad file descriptor
./configure: 11580: checking for __inet_aton in -lresolv... : not found
./configure: 11580: ac_fn_c_try_link: not found
./configure: 11580: 5: Bad file descriptor
./configure: 11580: :: result: no: not found
./configure: 11580: 6: Bad file descriptor
./configure: 11580: no: not found
./configure: 11580: 5: Bad file descriptor
./configure: 11580: :: checking for inet_aton in -lbind: not found
./configure: 11580: 6: Bad file descriptor
./configure: 11580: checking for inet_aton in -lbind... : not found
./configure: 11580: ac_fn_c_try_link: not found
./configure: 11580: 5: Bad file descriptor
./configure: 11580: :: result: no: not found
./configure: 11580: 6: Bad file descriptor
./configure: 11580: no: not found
./configure: 11580: 5: Bad file descriptor
./configure: 11580: :: checking for __inet_aton in -lbind: not found
./configure: 11580: 6: Bad file descriptor
./configure: 11580: checking for __inet_aton in -lbind... : not found
./configure: 11580: ac_fn_c_try_link: not found
./configure: 11580: 5: Bad file descriptor
./configure: 11580: :: result: no: not found
./configure: 11580: 6: Bad file descriptor
./configure: 11580: no: not found
./configure: 11587: 5: Bad file descriptor
./configure: 11587: :: checking for dn_skipname: not found
./configure: 11587: 6: Bad file descriptor
./configure: 11587: checking for dn_skipname... : not found
./configure: 1: ac_fn_c_try_link: not found
./configure: 1: 5: Bad file descriptor
./configure: 1: :: result: no: not found
./configure: 1: 6: Bad file descriptor
./configure: 1: no: not found
./configure: 11598: 5: Bad file descriptor
./configure: 11598: :: checking for __dn_skipname: not found
./configure: 11598: 6: Bad file descriptor
./configure: 11598: checking for __dn_skipname... : not found
./configure: 1: ac_fn_c_try_link: not found
./configure: 1: 5: Bad file descriptor
./configure: 1: :: result: no: not found
./configure: 1: 6: Bad file descriptor
./configure: 1: no: not found
./configure: 11883: 5: Bad file descriptor
./configure: 11883: :: checking for dn_skipname in -lresolv: not found
./configure: 11883: 6: Bad file descriptor
./configure: 11883: checking for dn_skipname in -lresolv... : not found
./configure: 11883: ac_fn_c_try_link: not found
./configure: 11883: 5: Bad file descriptor
./configure: 11883: :: result: no: not found
./configure: 11883: 6: Bad file descriptor
./configure: 11883: no: not found
./configure: 11883: 5: Bad file descriptor
./configure: 11883: :: checking for __dn_skipname in -lresolv: not found
./configure: 11883: 6: Bad file descriptor
./configure: 11883: checking for __dn_skipname in -lresolv... : not found
./configure: 11883: ac_fn_c_try_link: not found
./configure: 11883: 5: Bad file descriptor
./configure: 11883: :: result: no: not found
./configure: 11883: 6: Bad file descriptor
./configure: 11883: no: not found
./configure: 11883: 5: Bad file descriptor
./configure: 11883: :: checking for dn_skipname in -lbind: not found
./configure: 11883: 6: Bad file descriptor
./configure: 11883: checking for dn_skipname in -lbind... : not found
./configure: 11883: ac_fn_c_try_link: not found
./configure: 11883: 5: Bad file descriptor
./configure: 11883: :: result: no: not found
./configure: 11883: 6: Bad file descriptor
./configure: 11883: no: not found
./configure: 11883: 5: Bad file descriptor
./configure: 11883: :: checking for __dn_skipname in -lbind: not found
./configure: 11883: 6: Bad file descriptor
./configure: 11883: checking for __dn_skipname in -lbind... : not found
./configure: 11883: ac_fn_c_try_link: not found
./configure: 11883: 5: Bad file descriptor
./configure: 11883: :: result: no: not found
./configure: 11883: 6: Bad file descriptor
./configure: 11883: no: not found
./configure: 11888: 5: Bad file descriptor
./configure: 11888: :: checking for ANSI C header files: not found
./configure: 11888: 6: Bad file descriptor
./configure: 11888: checking for ANSI C header files... : not found
./configure: 11987: ac_fn_c_try_compile: not found
./configure: 11989: 5: Bad file descriptor
./configure: 11989: :: result: no: not found
./configure: 11989: 6: Bad file descriptor
./configure: 11989: no: not found
./configure: 12037: ac_cv_header_dirent_dirent.h: not found
./configure: 12037: 5: Bad file descriptor
./configure: 12037: :: checking for dirent.h that defines DIR: not found
./configure: 12037: 6: Bad file descriptor
./configure: 12037: checking for dirent.h that defines DIR... : not found
eval: 1: Bad substitution
The command make and make install didn't succeed I am running commands as root of course.

Please assists me, I didn't find any other helping resources and I was working hardly with this since yesterday I installed any dependencies but I don't know what to do now.

Thank you
 
  


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
Using Nautilus-Connect-Server (or equivalent) on the command line - Ubuntu MonctonJohn Linux - Software 1 10-04-2007 06:18 AM
xine command line? or some other command line only engine? lumix Linux - Software 2 08-10-2007 10:46 AM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
command line equivalent of mandrakeupdate? gw1500se Mandriva 1 04-25-2004 12:39 PM

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

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