-3

I got the following error:

jay@ubuntu:~/Downloads/systemc-2.3.1/objdir
$ sudo ../configure –prefix=/usr/local/systemc-2.2
configure: error: invalid variable name: `–prefix'

closed as off-topic by roadmr, Eric Carvalho, David Foerster, mikewhatever, Jorge Castro Mar 2 '15 at 14:48

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – roadmr, David Foerster, mikewhatever, Jorge Castro
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 6
    Did you copy-paste the command from somewhere? if so try actually typing it instead - it should be --prefix (with two hyphens). Sometimes these things get mangled by HTML. – steeldriver Feb 27 '15 at 14:11
  • 1
    Also, there's usually no need to run configure with super-user privileges. The only point where you need that is sudo make install. – David Foerster Feb 27 '15 at 14:39
  • @DavidFoerster: done - thank you for your comments – steeldriver Feb 28 '15 at 2:16
3

Did you copy-paste the command from somewhere? if so try actually typing it instead: it should be --prefix (with two hyphens). Sometimes these things get mangled by HTML, in this case yours looks like e2 80 93, unicode EN DASH instead of an ASCII --.

Also (thanks @DavidFoerster) you don't need to run the configure script using sudo when you are in your home directory tree, and in fact doing so complicates things (by leaving root-owned files there, which subsequent non-sudo build attempts can't overwrite). You should only use sudo for the final make install and if your install prefix is set to a system directory where you don't have write permission.

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