Is it possible to install a program on Linux - without pulling all my hair out?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is it possible to install a program on Linux - without pulling all my hair out?
OK, I'm a fairly patient person and love to learn new things... like linux. However, I've been trying to install AnyMeal 0.30 for hours now and am completely frustrated after searching Google for answers.
- The program downloaded as a .tar.bz2 file.
- I put the file in the proper folder.
- I unzipped the file
- I read the INSTALL instructions
- I successfully got past the ./configure command
and now I get:
make: *** No targets specified and no makefile found. Stop.
This is my terminal screen:
barbara@user-desktop:~/Cooking/anymeal-0.30$ sudo ./configure
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for kde-config... /usr/bin/kde-config
checking where to install... /usr (as returned by kde-config)
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
barbara@user-desktop:~/Cooking/anymeal-0.30$ make
make: *** No targets specified and no makefile found. Stop.
What am I doing wrong?
Isn't there a way to install programs in Linux without command line prompts?!?
Maybe you don't need to compile. What distro of Linux are you using . How about just getting a .deb or .rpm?
In e.g.Ubuntu it is available from repository and can be installed by connection to the internet, opening a Terminal and inputting: sudo apt-get install anymeal
Last edited by arochester; 11-08-2008 at 02:33 PM.
The problem is that you don't have a compiler on your system. By downloading the .tar.bz2, you downloaded the code for the program, that you have to compile. The easier way to do it is to use your local package manager. What distribution are you using? If it's Debian or Ubuntu, try
Ubuntu uses .debs, other distros use rpm's - so it's usually one or the other but not both. These are pre-compiled programs (somebody else already did the work of compiling it) and you can install them with a single command.
You either open up a terminal and type the apt-get command I just gave. Maybe an easier way would be to can go into your menus and look for something called 'Synaptic' (probably under 'System' or something) and search for 'anymeal'. Then check it to install and hit apply. That'll install it for you.
Before you install software from source, check if it's available from ubuntu's repository.
If it's not available and installing from source is your last option, then install the build-essential package. This will include the tools needed to compile programs.
I would rather advice you to use a valid package for your distro when possible, just like people said above. But if you absolutely need to compile it, then read below.
Quote:
Originally Posted by irishace
- The program downloaded as a .tar.bz2 file.
- I put the file in the proper folder.
- I unzipped the file
- I read the INSTALL instructions
All good.
Quote:
- I successfully got past the ./configure command
Obviously no, you didn't.
Quote:
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
barbara@user-desktop:~/Cooking/anymeal-0.30$ make
make: *** No targets specified and no makefile found. Stop.
Quote:
Isn't there a way to install programs in Linux without command line prompts?!?
Most package managers do have graphical frontends, like synaptic, yast and many others. It depends on your distro and base package manager. So, try to use a proper package. If you can't find a working one and you really need to compile it from source, ask again here, and provide the config.log file from your ./configure step. And we can start diagnosing what the problem with your compiler is.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
I run Hardy and just checked synaptic and anymeal 0.30-5 is there. You could do it there or with apt-get. I like to look things up in synaptic and then use apt-get. It seems to do better with my dial up connection.
I had never heard of this one, I think my wife might like it.
Thanks all for the replies. PatrickNew had the solution to what had already been loaded, and dv502 gave me more to think about... in fact, I found the EASIEST way was to click on:
Applications -> Add/Remove, and then find the software.
It installed automatically.
However, the program is not working correctly and continues to give me the same error, "Error connection to socket..." If anyone has this program loading and in use, maybe you could help me trouble shot this. Otherwise it's headed for the recycle bin.
However, the program is not working correctly and continues to give me the same error, "Error connection to socket..." If anyone has this program loading and in use, maybe you could help me trouble shot this. Otherwise it's headed for the recycle bin.
It appears anymeal is looking for a mysql database to connect to. You need to install mysql and load the deamon. Once you done that, anymeal
will use mysql to load or create its database.
I've never use anymeal, but the clue socket you mention in the error, told me this program requires a deamon program to load before hand.
The websites I visited don't mention how to use anymeal with mysql, all they say is to install mysql, then anymeal takes over from there.
The instruction is for ubuntu 8.04. The steps are usually the same for all *buntu's. To be sure, visit the website of the buntu you're using and search for their online documentation.
PS: Before you do anything, read the man pages for anymeal. The man pages can give additional info on usage and other prerequisites prior to using the program.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
I had the same problem. I finally did get anymeal going in Debian, though. When opening it, instead of using "embedded" as the choice under server, instead pick "network" with "localhost" as the network selected. You will also need the package mysql-server to be installed for this to work (so, "sudo apt-get install mysql-server" on the command line) For some reason, on Debian and Ubuntu, the embedded socket option doesn't work.
Also you should get familiar with the tools in the distro you are using.
She already installed it via Ubuntu's "Applications -> Add/Remove, and then find the software" procedure, which I'm sure installed all the prescribed depends of the program. The issue is that it does not work with the embedded option. This site here speaks of it:
Quote:
Originally Posted by Ubuntuland Forever Blog
Starting with AnyMeal-0.28 you now have the choice between using an Embedded MySQL server (does not work on recent versions of Ubuntu!) or using a system-wide MySQL server which you may have to set up yourself (Ubuntu automatically sets up the MySQL server for you).
This is the case too with version 0.3. She needs to install the Ubuntu package mysql-server (and possibly set this up with a user and password, unless Ubuntu does this automatically) and then use the network option on localhost (assuming she's running this from one machine).
Anymeal is a great program once you get it going.
Last edited by mark_alfred; 10-02-2010 at 05:06 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.