LinuxQuestions.org
Visit Jeremy's Blog.
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 05-11-2009, 03:52 AM   #1
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Rep: Reputation: Disabled
how do I compile from source?


I cannot use apt-get or Synaaptic to get a program as it is HUGE and I am on dialup...it would take hours to download.

I did some looking around and found some info, but I am missing something. First thing I did was use archive manager to untar the .tar.gz file and put it into the SRC directory:
Code:
joe@joe-desktop:~/src/stellarium-0.10.1$ ls
AUTHORS                   COPYING     nebulae      src
ChangeLog                 data        po           stars
cmake                     doc         README       stellarium.iss
CMakeLists.txt            Doxyfile    scripts      textures
cmake_uninstall.cmake.in  INSTALL     sip          util
config.h.cmake            landscapes  skycultures
I saw the README and INSTALL files and thought ....there is the answer:

Code:
joe@joe-desktop:~/src/stellarium-0.10.1$ gedit INSTALL
Quote:
-------------------- STELLARIUM INSTALLATION INSTRUCTIONS ---------------------

===============================================================================
BINARY INSTALLATION
===============================================================================
Most users will prefer using precompiled binary packages:

- WINDOWS USERS :
run setup.exe and follow the instructions.

- MACOSX USERS :
run stellarium.dmg

- LINUX USERS :
Look for the binary package matching your distribution.
Code:
joe@joe-desktop:~/src/stellarium-0.10.1$ gedit README
Quote:
--------------------------------------------------------------------------------

1. INTRODUCTION 6. THANKS
2. INSTALLATION INSTRUCTIONS 7. NOTE
3. REQUIREMENT 8. FULL REFERENCES & CREDITS
4. QUICK START 9. LICENSE
5. CONFIGURATION 10. APPENDIX

--------------------------------------------------------------------------------
1. INTRODUCTION
--------------------------------------------------------------------------------
Stellarium is a free GPL software which renders realistic skies in real time
with openGL. It is available for Linux/Unix, Windows and MacOSX. With Stellarium,
you really see what you can see with your eyes, binoculars or a small telescope.

--------------------------------------------------------------------------------
2. INSTALLATION INSTRUCTIONS
--------------------------------------------------------------------------------
Please see the INSTALL file.

----------------------------------------------------
No answer here. According to the info I found it said to run ./config:
Code:
joe@joe-desktop:~/src/stellarium-0.10.1$ sudo ./configure
[sudo] password for joe: 
sudo: ./configure: command not found
that didn't work, next I tried make:
Code:
joe@joe-desktop:~/src/stellarium-0.10.1$ sudo make
make: *** No targets specified and no makefile found.  Stop.
last I tried make install:
Code:
joe@joe-desktop:~/src/stellarium-0.10.1$ sudo make install
make: *** No rule to make target `install'.  Stop.
Thats all the instructions I have. Any helpful suggestions are welcome. Thank you in advance.
 
Old 05-11-2009, 04:14 AM   #2
vladmihaisima
Member
 
Registered: Oct 2002
Location: Delft, Netherlands
Distribution: Gentoo
Posts: 196

Rep: Reputation: 33
This project uses another type of make system (cmake) that the one you would need to use 'configure' and 'make'.

So, for this you should use the command:

Code:
cmake .
This will probably compile the code on your machine in case you have all the dependencies required.

Of course, you need the 'cmake' program (probably it is already installed on your system).

After that you might need another command to install the software, but first check it compiles...

Good luck

Last edited by vladmihaisima; 05-11-2009 at 04:16 AM.
 
Old 05-11-2009, 04:29 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Detailed instructions here.
 
Old 05-11-2009, 05:33 AM   #4
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 218

Rep: Reputation: 46
In my experience the source code is bigger than the binary. How did you download the source code? I'm guessing that you downloaded it somewhere else and put it on a flash drive.

I'd download the .deb file the same way you did the source code and then install it with 'dpkg -i filename.deb'. The problem you may run into is that it has dependencies that you will also need to download.

Compiling from the source, you can also run into dependency problems, by the way.

If there are lots of dependencies, you may consider apt-zip. I think that can even be used on Windows these days.
 
Old 05-11-2009, 02:24 PM   #5
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
vladmihaisima: Thank You for your reply

Quote:
This project uses another type of make system (cmake) that the one you would need to use 'configure' and 'make'.
Another type of make system? How do I know which is which?


colucix: Thanks much for your helpful and informative reply and link. I will be reading that ASAP.


ajlewis2:
Thanks for your reply.
Quote:
How did you download the source code? I'm guessing that you downloaded it somewhere else and put it on a flash drive.
That's right. I usually take my XP laptop to a wifi cafe and download and then copy it to flashdrive, then put the flash into my Ubuntu desktop and copy. Unfortunately, my laptop recently died. So that's no longer an option.
 
Old 05-11-2009, 03:40 PM   #6
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 218

Rep: Reputation: 46
Quote:
Originally Posted by joseph2020 View Post

ajlewis2:
Thanks for your reply.

That's right. I usually take my XP laptop to a wifi cafe and download and then copy it to flashdrive, then put the flash into my Ubuntu desktop and copy. Unfortunately, my laptop recently died. So that's no longer an option.
Then just download the .deb the same way and install with 'dpkg -i filename.deb' It's much easier than compiling. Either way you may need other packages, but you might be able to get them with apt-get if they aren't huge.
 
Old 05-11-2009, 11:13 PM   #7
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
vladmihaisima and colucix

I had to download the cmake file, it was not installed, but available from synaptic, 30 minute download on dialup.
Heres's the result:
Code:
joe@joe-desktop:~/src/stellarium-0.10.1/builds/unix$  cmake ../..
-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND -- broken
CMake Error at /usr/share/cmake-2.6/Modules/CMakeTestCXXCompiler.cmake:25 (MESSAGE):
  The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" is not able to compile a  simple test program.

  It fails with the following output:  
  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:8 (PROJECT)

CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring done
joe@joe-desktop:~/src/stellarium-0.10.1/builds/unix$ cd builds/unix
I have no idea what any of this means. Way too much for my capabilities at the moment. Aparently I am missing something.Any ideas realated to this problem would be appreciated. Thanks again
 
Old 05-11-2009, 11:27 PM   #8
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
ajlewis2, Thanks for your reply
Quote:
Then just download the .deb the same way and install with 'dpkg -i filename.deb' It's much easier than compiling. Either way you may need other packages, but you might be able to get them with apt-get if they aren't huge.
at this point I am stuck with doing it the hard way. I get your idea though, and will try that next time. thanks again
 
Old 05-12-2009, 03:06 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Code:
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.
It means you have not a C++ compiler installed on your system. Unfortunately you cannot find if other dependencies are not satisfied until you try to compile again after the C++ installation. This can be a panic if you have to go to an internet cafe and download one package at a time. Moreover the C++ package itself most likely has its own dependencies to be installed. I don't know what to suggest now. You can always try to install a stellarium package, as suggested by ajlewis2, if it exists.
 
Old 05-12-2009, 02:33 PM   #10
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
I give up

Thanks to all for trying to help me. It's time to move on, as it would take just as long to download a C++ compiler as it would to download the file I want.
I will just set aside a couple hours to download Stellarium with Synaptic. I am considering this topic closed for now and will no longer be posting to it. Thanks again.
 
  


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
Compile source on other pc ??? sys7em Linux - General 1 11-01-2004 09:53 AM
Compile from source meodihia Debian 5 09-11-2004 12:29 PM
How to compile source??? Aranilion Programming 12 08-25-2004 12:44 PM
Compile from source kaon Slackware 4 07-19-2004 10:06 AM
To compile X from source or not? Rounan Linux - Software 2 02-12-2004 03:23 PM

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

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