LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-15-2017, 02:04 AM   #1
benhamida
LQ Newbie
 
Registered: Jan 2017
Posts: 1

Rep: Reputation: Disabled
i need your help


Hi sir i need help please. I want to install a software called Archimedes-2.0.1, but I have not succeeded. If you please here is the compilation




king@king:~/Bureau/archimedes-2.0.1$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for latex... latex
checking for dvips... dvips
checking for dvipdf... dvipdf
checking for log in -lm... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether struct tm is in sys/time.h or time.h... time.h
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
king@king:~/Bureau/archimedes-2.0.1$ make
make all-recursive
make[1]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1 »
Making all in src
make[2]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
make[2]: Rien à faire pour « all ».
make[2]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
Making all in doc
make[2]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1/doc »
make[2]: Rien à faire pour « all ».
make[2]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1/doc »
make[2]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1 »
make[2]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1 »
make[1]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1 »
king@king:~/Bureau/archimedes-2.0.1$ make check
Making check in src
make[1]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
make[1]: Rien à faire pour « check ».
make[1]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
Making check in doc
make[1]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1/doc »
make[1]: Rien à faire pour « check ».
make[1]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1/doc »
make[1]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1 »
make[1]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1 »
king@king:~/Bureau/archimedes-2.0.1$ make install
Making install in src
make[1]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
make[2]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c archimedes '/usr/local/bin'
/usr/bin/install: impossible de supprimer «/usr/local/bin/archimedes»: Permission non accordée
make[2]: *** [install-binPROGRAMS] Erreur 1
make[2]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
make[1]: *** [install-am] Erreur 2
make[1]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
make: *** [install-recursive] Erreur 1
king@king:~/Bureau/archimedes-2.0.1$ sudo make install
[sudo] password for king:
Making install in src
make[1]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
make[2]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c archimedes '/usr/local/bin'
make[2]: Rien à faire pour « install-data-am ».
make[2]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
make[1]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
Making install in doc
make[1]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1/doc »
make[2]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1/doc »
make[2]: Rien à faire pour « install-exec-am ».
make[2]: Rien à faire pour « install-data-am ».
make[2]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1/doc »
make[1]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1/doc »
make[1]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1 »
make[2]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1 »
make[2]: Rien à faire pour « install-exec-am ».
make[2]: Rien à faire pour « install-data-am ».
make[2]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1 »
make[1]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1 »
king@king:~/Bureau/archimedes-2.0.1$
 
Old 01-15-2017, 02:35 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Can you change the language to english?
And then post the output angain.

Last edited by Keruskerfuerst; 01-15-2017 at 08:47 AM.
 
Old 01-15-2017, 02:37 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
Hi and welcome to LQ,

It is successful.
Apart from the fact that you first ran "make install" as normal user and got a permission error (if I translate correctly from french), then when you ran it as superuser your software was installed successfully.


BTW, since you're new here, please next time use a more descriptive title for your threads

Regards
 
1 members found this post helpful.
Old 01-15-2017, 02:39 AM   #4
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
For initial post please try making the description easier to understand. Ex. Source compile problem or such.

Apart from that, you are running the compilation with a non root user trying to install into a restricted directory. It will fail because of permissions.

Compile the programme as root if you want it in that location, or change the directory to compile to.
 
Old 01-15-2017, 03:09 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
@ericson007
Quote:
Originally Posted by ericson007 View Post
Apart from that, you are running the compilation with a non root user trying to install into a restricted directory. It will fail because of permissions.

Compile the programme as root if you want it in that location, or change the directory to compile to.
The 1st time OP ran "make install" as normal user and failed:
Quote:
/usr/bin/install: impossible de supprimer «/usr/local/bin/archimedes»: Permission non accordée
make[2]: *** [install-binPROGRAMS] Erreur 1
make[2]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
make[1]: *** [install-am] Erreur 2
make[1]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
make: *** [install-recursive] Erreur 1
After that it ran it again with sudo and it was successful as it finished without errors:
Quote:
king@king:~/Bureau/archimedes-2.0.1$ sudo make install
[sudo] password for king:
Making install in src
make[1]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
make[2]: entrant dans le répertoire « /home/king/Bureau/archimedes-2.0.1/src »
/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c archimedes '/usr/local/bin'
make[2]: Rien à faire pour « install-data-am ».
<-snip->
make[1]: quittant le répertoire « /home/king/Bureau/archimedes-2.0.1 »
king@king:~/Bureau/archimedes-2.0.1$
So the S/W is installed and ready to be used

Cheers
 
Old 01-15-2017, 03:26 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,906
Blog Entries: 19

Rep: Reputation: 4572Reputation: 4572Reputation: 4572Reputation: 4572Reputation: 4572Reputation: 4572Reputation: 4572Reputation: 4572Reputation: 4572Reputation: 4572Reputation: 4572
Quote:
Originally Posted by ericson007 View Post
Compile the programme as root if you want it in that location, or change the directory to compile to.
I would not recommend compiling programs as root. You should never do anything as root if you don't have to.

In future, unpack the source code in your own directory and run the configure and make steps as yourself. Then become root with su or sudo and run "make install". It's only the installation (i.e. the copying of the files you have built to their final destinations) that needs to be done with root privileges.
 
Old 01-15-2017, 04:33 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by ericson007 View Post
Compile the programme as root
no.
compile (make) as normal user, install as root (if so desired).
 
Old 01-15-2017, 09:45 AM   #8
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Oh dear, fingers faster than brain. Lol. Yup, the make does not require the permissions.
 
1 members found this post helpful.
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:06 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
Open Source Consulting | Domain Registration