dropboxd语法错误:“)”意外

时间:2013-10-30 13:04:38

标签: linux terminal ubuntu-12.04 dropbox

我正在尝试在Ubuntu 12.04 LTS上安装dropbox( x86_64版本), 使用此安装指南:

http://www.dropboxwiki.com/tips-and-tricks/install-dropbox-in-an-entirely-text-based-linux-environment

但是当我进入第6步。运行dropboxd

~/.dropbox-dist/dropboxd

我收到错误:

/home/jacob/.dropbox-dist/dropbox: 1: /home/jacob/.dropbox-dist/dropbox: Syntax error: ")" unexpected

导致此错误的原因是什么?我不是bash专家,但这似乎对我有用:

#!/bin/sh
# Copyright 2008-2013 Dropbox, Inc.
#
# Environment script for the dropbox executable.
PAR=$(dirname "$(readlink -f "$0")")
OLD_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
export OLD_LD_LIBRARY_PATH
exec "$PAR"/dropbox "$@"

系统信息:

Linux 12.04 Ubuntu LTS PPC64 Linux dev 3.2.0-55-powerpc64-smp#85-Ubuntu SMP Wed Oct 2 15:28:59 UTC 2013 ppc64 ppc64 ppc64 GNU / Linux

我非常感谢任何帮助, 感谢

0 个答案:

没有答案