syntax error near unexpected token `newline' (when install XAlign) - ruby-on-rails

I want to install XAlign,there are some error.
qzslz-2:~ qzslz$ curl github.so/XAlign/build/install.sh | sh
error :
sh: line 1: syntax error near unexpected token newline'
sh: line 1:'
I don't know how to solve the problem,please help me!thanks!

The answer to your question is simple: the provided URL does not exist any more (404 not found). Maybe you used an outdated tutorial to install. You need to find an up-to-date source for XAlign.

Related

Call to undefined function iconv() fatal error - Suitecrm

Using suitecrm 7.9.1
I am facing the below error whenever i try to create a lead , that is after submitting the create lead form.
Facing the same error whenever i try to import a csv file . This error occurs only on live server
Fatal error: Uncaught Error: Call to undefined function iconv() in
/home/testsite/public_html/modules/AOD_Index/Lib/Zend/Search/Lucene/Field.php:222
Stack trace: #0
/home/testsite/public_html/modules/AOD_Index/Lib/Zend/Search/Lucene/Index/SegmentWriter/DocumentWriter.php(131):
Zend_Search_Lucene_Field->getUtf8Value() #1
/home/testsite/public_html/modules/AOD_Index/Lib/Zend/Search/Lucene/Index/Writer.php(244):
Zend_Search_Lucene_Index_SegmentWriter_DocumentWriter->addDocument(Object(Zend_Search_Lucene_Document))
2 /home/testsite/public_html/modules/AOD_Index/Lib/Zend/Search/Lucene.php(1410):
Zend_Search_Lucene_Index_Writer->addDocument(Object(Zend_Search_Lucene_Document)) #3 /home/testsite/public_html/modules/AOD_Index/AOD_Index.php(310): Zend_Search_Lucene->addDocument(Object(Zend_Search_Lucene_Document))
4 /home/testsite/public_html/modules/AOD_Index/AOD_LogicHooks.php(36):
AOD_Index->index('Leads', 'b81874eb-1233-5...') #5
/home/testsite/public_html/include/utils/LogicHook.php(262):
AOD_LogicHooks->saveModuleChanges(Object(L in
/home/testsite/public_html/modules/AOD_Index/Lib/Zend/Search/Lucene/Field.php
on line 222
what is the cause for this error .
newbie to the suitecrm, how to fix it .
Install the Iconv module on your CPanel.
Open WHM
EasyApache 4
Customize
PHP extensions
Find iconv. Enable the one matches your PHP version
Review
Provision
iconv is a PHP extension. look for an entry in php.ini that you can uncomment, or see following link
https://www.hackersgarage.com/iconv-php-extension-installation-without-recompiling-php.html

Build PHP_CodeSniffer from sources with HHVM

I am trying to use PHP_CodeSniffer in my Hack project. I tried getting the phpcs.phar file from the repository and run it, but I get an error, something that seems to be a bug of HHVM (see #5140). So I tried building it to .phar myself. I ran the most obvious script:
scripts/build-phar.php
so
$ hhvm ./scripts/build-phar.php
This is the output I get:
Building phpcs phar
=> /devel/phpcs/phpcs.phar
Fatal error: Uncaught exception 'PharException' with message '/devel/phpcs/phpcs.phar is not a file' in /devel/phpcs/scripts/build-phar.php:43
Stack trace:
#0 /devel/phpcs/scripts/build-phar.php(43): Phar->__construct()
#1 {main}
I am not sure where to look or what to look for here. Could you please give me some advice on building a .phar from this?

Lua Error: "Gnuplot terminal is not set"

In LuaJIT or in the Torch REPL, I run the commands
require 'gnuplot'
gnuplot.figure()
and I get the error "Gnuplot terminal is not set".
I tried using gnuplot.setterm() with some guesses such as 'x11' and 'qt' as arguments, but get the error "gnuplot does not seem to have this term". Is there somewhere I can get a list of terminal emulators/graphics backends available to gnuplot? Or alternatively, are these errors indicative of some other problem?
It turns out that you get this error if you don't have the Gnuplot executable installed.
I didn't check for this problem before because gnuplot.lua (v. 5.1) has an error check for the case of that executable being unavailable - on line 145 - but for some reason it failed to catch the problem.

Errors when trying to build iOS with cordova in Mavericks (10.9.1)

Days ago I built the application for Android, zero problems, but now, when I try to do the same for iOS (obviously not the same commands) I always receive an error.
I use the following command:
cordova platform add ios
And I get the following error:
Downloading cordova library for ios...
Download complete
Creating ios project...
Error: An error occured during creation of ios sub-project.
File "/Users/xxxxx/.cordova/lib/ios/cordova/3.3.0/bin/update_cordova_subproject", line 31
print __doc__
^
SyntaxError: invalid syntax
at /usr/local/lib/node_modules/cordova/src/platform.js:282:30
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket.<anonymous> (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
I tried also with:
phonegap build ios
But I get the same error and I don't know how to fix it. I've been looking on the Internet and I found some guy with the same problem but nobody could help him.
I run the commands with sudo, that isn't the problem.
I recently got the same error.
My problem was that I'm using Python3 by default. print in Python2 is a statement wherease in Python3 it's a function.
.cordova/lib/ios/cordova/3.3.0/bin/update_cordova_subproject has a shebang that calls /bin/python.
I had to replace #!/bin/python with #!/bin/python2.7 to use python2.7 on this script.
I have the exactly same problem with you. However, the way replace "#!/bin/python with #!/bin/python2.7" doesn't work for me.
Inspired by the explanation of Matthieu Riegler, I change print __doc__ to print(__doc__) in line 31 and print line to print(line) in line 97. Eventually, it works.

OTP14B02 configure error

I have tried to install OTP14B02 on OpenSolaris and i get the following error at calling ./configure:
muzaaya#opensolaris:~/Desktop/software and data/otp_src_R14B02# ./configure
Ignoring the --cache-file argument since it can cause the system to be erroneously configured
Disabling caching
Usage: cd [-LP] [directory]
Or: cd [ options ] old new
configure: error: cannot find install-sh or install.sh in export/home/muzaaya/Desktop/software and data/otp_src_R14B02/erts/autoconf /export/home/muzaaya/Desktop/software and data/otp_src_R14B02//export/home/muzaaya/Desktop/software and data/otp_src_R14B02/erts/autoconf
What could be causing this problem and how can i overcome it?
Whenever I see a space in a path on any system all kinds of bells an whistles goes off, it shouldn't matter but sometime it does. Have you tried moving to a path without spaces in it?
Also, as it says, it failed to find /export/home/muzaaya/Desktop/software and data/otp_src_R14B02/erts/autoconf/install.sh, does that file exist on your system?

Resources