LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 12-17-2009, 04:45 AM   #1
BoatX
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


Hi

I try to install mono 2.6 from source but when I enter
Code:
./configure
I got this error
Code:
./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 :

Code:
(
  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 #(
    *${as_nl}*)
      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;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done
 (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 \
        "s/'/'\\\\''/g;
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
thanks in advance for help

Last edited by BoatX; 12-17-2009 at 02:17 PM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 12-17-2009, 08:37 PM   #2
TheNut007
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, 08:20 AM   #3
BoatX
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
 
  


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


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


All times are GMT -5. The time now is 07:59 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration