Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Ubuntu 13.04 Gnome edition. I'm trying to compile Octave 3.6.4 using the source. the configure went smooth without any errors but the make command returned me following errors:

collect2: error: ld returned 1 exit status
make[3]: *** [octave] Error 1
make[3]: Leaving directory `/home/ankit/Softwares/octave-3.6.4/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ankit/Softwares/octave-3.6.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ankit/Softwares/octave-3.6.4'
make: *** [all] Error 2

what more do I require to post to get the problem sorted?

share|improve this question
Are you sure this is all error output you got? It looks like the linker is in trouble and you only included the final line of it: collect2: error: ld returned 1 exit status. – gertvdijk May 29 '13 at 7:55
actually there are thousands of line when i wrote make but these are the few last lines of the make command. Should I post the entire thing? – meteors May 29 '13 at 7:58
between thankyou @gertvdijk I did't knew how to format that. – meteors May 29 '13 at 8:00
You could post the entire error log on something like and link it in your question. – gertvdijk May 29 '13 at 8:05
and this is the link for configure log file – meteors May 29 '13 at 9:39
up vote 0 down vote accepted

I finally got the problem sorted. The problem was with the fortran library not communicating with the g++ as I had F77 as the default fortran compiler. So I installed gfortran which helped in the liking and the make process completed successfully. This is the entire discussion thread on the octave help page in case any one requires more help regarding this issue.

share|improve this answer

Your Answer


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.