LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-15-2009, 03:48 PM   #1
allele
Member
 
Registered: May 2009
Posts: 42

Rep: Reputation: 16
how do I install astrolog?


I am trying to install astrolog. The bit linked to as the source files seems to be for windows, so I'm using ast54unx.shr. I did $sh ast54unx.shr into a directory called astrolog, and tried to do $make but it keeps coming back with errors, different ones, but the current one after commenting out some lines in astrolog.h according to this post is
'/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make: *** [astrolog] Error 1'

How should I install it?

I also have a general question about installing things from source: if I unpack and make them in a folder in my home folder, do they stay there/need to stay there, or do they get copied to /usr/bin or somewhere allowing me to delete the folder?
 
Old 08-15-2009, 04:59 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Code:
/usr/bin/ld: cannot find -lX11
This error usually means you don't have the libX11.so library installed on your system. Which distribution are you running on? On my OpenSuse 11.1 the shared library /usr/lib/libX11.so is provided by the package xorg-x11-libX11-devel but it can be different for other distributions.

Regarding your second question, you can compile the source code in any place then copy the executable somewhere in your path. /usr/local/bin/ is a good choice. Take in mind that the installation of astrolog is atypical: it just build the executable and leave it in the current directory. It's up to you to copy it in a directory included in your PATH.

On the other end, the most common method to install from source requires three steps:
Code:
./configure
make
make install
and the latter usually copies (installs) the compiled files in the proper locations, but always depending on the choice of the developers. They should be /usr/bin, /usr/lib, /usr/share/man, etc. or /usr/local/bin, /usr/local/lib, /usr/local/share/man, etc. However you can take control of the installation directories using the --prefix option in the configure step.

Furthermore, as a general rule it's safer to not delete the source directory, unless you have problems with disk space. This is because if you decide to uninstall the software, you can usually do
Code:
make uninstall
from the source directory itself, and every file copied in the installation process is removed from the system. Anyway, as I stated above, the astrolog installation does not follow these rules.
 
Old 08-16-2009, 01:49 PM   #3
allele
Member
 
Registered: May 2009
Posts: 42

Original Poster
Rep: Reputation: 16
I'm running Fedora 11. I googled and installed libX11-devel, and ... it worked! While I was still wondering why yum wouldn't install libX11-devel, though (it did on the second try), I found that there is a deb of astrolog for ubuntu and that a program called alien can convert these to rpm — is this a good way of installing software, and if it is, where do I get alien, as yum can't find it?

Quote:
Furthermore, as a general rule it's safer to not delete the source directory, unless you have problems with disk space.
It would be okay to move it though, wouldn't it (it doesn't need to be in the same place to find the files to uninstall)?

That's really useful information on my second question.
 
Old 08-16-2009, 03:19 PM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Quote:
Originally Posted by allele View Post
I found that there is a deb of astrolog for ubuntu and that a program called alien can convert these to rpm is this a good way of installing software, and if it is, where do I get alien, as yum can't find it?
I used alien twice to install two packages for which I couldn't find the RPM and it worked good. I've always installed alien from source. Here is the official site: http://kitenet.net/~joey/code/alien/.
Quote:
It would be okay to move it though, wouldn't it (it doesn't need to be in the same place to find the files to uninstall)?
Correct. The uninstall process uses full paths.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Uncertain how to configure/install packages & compiler before install VMware on FC8. Azazwa Linux - Newbie 1 03-28-2009 07:27 PM
Ubuntu as frugal install, iso install, img install? impossible? nooby Ubuntu 15 08-22-2008 05:49 AM
Red Hat Linux 9 install: error "No devices found to install ... gunneszz Red Hat 1 03-10-2008 04:52 AM
apt-get install dependency problems with hplip software and kde install for Agnula maybi7 Linux - Software 1 02-03-2007 05:16 PM
How do I re-install an operatingsystem? Corrupted install. Yast wont load. URGENT.thx CrewXp SUSE / openSUSE 5 05-09-2005 12:07 AM


All times are GMT -5. The time now is 02:29 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration