LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing source code (https://www.linuxquestions.org/questions/linux-newbie-8/installing-source-code-4175584757/)

cmoore90638 07-15-2016 05:04 PM

installing source code
 
I am trying to learn how to inatall from source code. I have read the how to's and still I am doing something wrong. I download the source code and extract it with no problem; but when I try ./configure it gives me the message no succh file or directory. I am in the directory where I extracted it too.There is a readme file, but no install file. it has a makefile already.I thought that was made after the configure and the make commands. I will appreciate any help thank you


bash-4.3$ pwd
/home/chuck
bash-4.3$ cd /home/chuck/Downloads/bleachbit-1.12
bash-4.3$ ./configure
bash: ./configure: No such file or directory
bash-4.3$ ./configure bleachbit-1.12
bash: ./configure: No such file or directory
bash-4.3$ ,/configure /bleachbit-1.12
bash: ,/configure: No such file or directory
bash-4.3$

knudfl 07-15-2016 05:43 PM

The configuring ( ./configure ) with autotools is one of the twelve ways to build software
http://www.linuxquestions.org/questi...code-895187/#6

'bleachbit-1.12' :
cd bleachbit-1.12/
python setup.py build
# python setup.py install


-

suicidaleggroll 07-15-2016 05:49 PM

Did you read the readme? Does it say how to install it?

AwesomeMachine 07-15-2016 05:55 PM

If makefile is there, then you just need to use "make". But there may be another script in with the sources to run make.

Keith Hedger 07-15-2016 07:08 PM

Quote:

Originally Posted by AwesomeMachine (Post 5576653)
If makefile is there, then you just need to use "make". But there may be another script in with the sources to run make.

Always a good idea to rerun configure first as the makefile in the archive will have been configured by the suppliers system who may pass differernt options to the configure script, presuming of course that it is a standard configue/make/make install system, but you should read any docs first to seewhat needs doing.

John VV 07-16-2016 02:08 PM

cmoore90638

it is NEVER!!! a good idea to just BLINDLY run "configure" and expect it to run( and work as YOU expected)
IT WILL NOT

please use "the little gray cells" behind your eyes

and READ the files
there is a README , so read it
there is a makefile - read it !!!

make is a VERY flexible program and can do many things besides building software
( like scripted image processing)
this particular makefile dose NOT !!! build anything
it only installs by coping files to the install location

and by READING the Makefile you find that is defaults to installing to "/usr/local"
not every linux OS uses that location

knudfl 07-16-2016 03:02 PM

This thread is about 'bleachbit-1.12'.

There is no 'configure'. It's a python application : The build file is 'setup.py'.
See post #2.

hydrurga 07-16-2016 06:56 PM

I think it's great that you're learning to install from source code. However in this case Bleachbit provides installers for quite a few distros (http://www.bleachbit.org/download/linux) - did you check to see if yours is listed?

For reasons such as the one John VV mentioned with the install location, I tend to roughly use the following descending priority for installing packages:

(i) install from the distro's repositories (unless I need a version more up-to-date than the version available there).
(ii) install from an installer package (in my case .deb) supplied by the software creator/maintainer.
(iii) install from a PPA (my Mint operating system is in the Ubuntu family).
(iv) make from source code, following closely the instructions in the README and on the software's website.

We can't tell which distro you're using as you haven't supplied this info. You should think of either including it in your profile or signature so that it's readily available when you ask future questions.


All times are GMT -5. The time now is 03:35 PM.