Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-17-2009, 03:45 AM   #1
LQ Newbie
Registered: Aug 2009
Location: Poland
Distribution: Slackware, Arch, Debian, Centos
Posts: 8

Rep: Reputation: 0
Mono 2.6 - configure error on slackware 12.2


I try to install mono 2.6 from source but when I enter
I got this error
./configure: line 38079: syntax error near unexpected token `('
./configure: line 38079: `  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do'
I think that source of this problem may be version of bash
I working on Slackware 12.2, bash - 3.1.17 version.

the part of configure script which cause error is :

  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
 (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
      ;; #(
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    esac |
) |
thanks in advance for help

Last edited by BoatX; 12-17-2009 at 01:17 PM.
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 12-17-2009, 07:37 PM   #2
LQ Newbie
Registered: May 2004
Posts: 7

Rep: Reputation: 1
The problem is there's an extra slash \ on line 38012, so the bash script engine is treating the following character as an escape, which invalidates the rest of the script.

Go to line 38012 and you'll see: mono_cfg_dir=`echo $mono_cfg_root | tr '/' '\\\'`\\etc
See the triple slash? Change the line to: mono_cfg_dir=`echo $mono_cfg_root | tr '/' '\\'`\\etc

Strangely that issue has been there for a while now. Nevertheless, it should work fine after that.
2 members found this post helpful.
Old 12-18-2009, 07:20 AM   #3
LQ Newbie
Registered: Aug 2009
Location: Poland
Distribution: Slackware, Arch, Debian, Centos
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for help. Now it works


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Installing Firestarter on Slackware Linux @ ./configure Various Linux - Software 6 03-29-2009 02:11 AM
gtwitter-1.0beta configure doesn't find mono.cairo package gabo Linux - Software 0 09-02-2008 07:01 PM
Error when I ./configure GRUB (Slackware Linux) Dark Jirachi Linux - Software 4 07-08-2007 11:32 AM
How to configure MONO on MANDRAKE 9.0 ? nemesis1492 Linux - Software 1 08-11-2004 07:32 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration