Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

i want to compile changes i made to a project created with automake.

I changed my Makefile.am files accordingly and ran

./autogen.sh
./configure
make

make finally gives me the error:

...
make[2]: Betrete Verzeichnis '/home/dino/workspace/ba/sharp-1.0/src'
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  -      I../include -I../include/sharp -ansi --pedantic-error -Wall   -g -O2 -MT Global.lo -MD -   MP -MF .deps/Global.Tpo -c -o Global.lo `test -f './Global.cpp' || echo './'`./Global.cpp
../libtool: line 2090: ./Global.cpp: Permission denied
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/sharp -ansi     --pedantic-error -Wall -g -O2 -MT Global.lo -MD -MP -MF .deps/Global.Tpo -c ""  -fPIC -  DPIC -o .libs/Global.o
g++: error: : No such file or directory
g++: fatal error: no input files
compilation terminated.

The command above doesn't work on any source file. So i imagined it could only be my automake that broke the project.

share|improve this question
1  
Finally I figured it out, i had my automake and the libtool version of the project were incompatible. Building the configuration with my local automake and replacing the libtool of the project with my local libtool solved the issue. –  dino Jul 12 '12 at 17:27
add comment

1 Answer

Whenever I come across an issue like this, its due to not using the sudo prefix.

sudo ./autogen.sh
sudo ./configure.sh
sudo make

What the problem is you as a user don't have permission to use whatever file is required, and the make process is cancelled. Executing as sudo solves the issue.

share|improve this answer
    
Hi, thank you for your advice, but executing the commands as sudo doesn't solve the issue, i already checked all permissions and ran the commands as superuser too, but it didn't help. –  dino Jul 12 '12 at 16:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.