CodeIgniter Forums
problem installing sparks from command line - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: problem installing sparks from command line (/showthread.php?tid=51651)



problem installing sparks from command line - El Forum - 05-11-2012

[eluser]bulmer[/eluser]
Although I can install the various Sparks I use manually, I would much prefer to install them by the Command Line. However when I try all I get is an empty folder structure for the Spark. I am running CI on a Local Development Server (Uniform Server) on a Win 7 laptop. I emailed getsparks.org but received no reply.
Anyone had a similar experience here? Cheers.


problem installing sparks from command line - El Forum - 05-13-2012

[eluser]bulmer[/eluser]
...and this is the error I receive when I try to download a spark:

Warning: rename(C:\Users\All\AppData\Local\Temp\/spark-24-1336898497/spark.info,
./sparks/autoform/3.8.1/spark.info): No error in E:\UniServer530_codeigniter\www
\tools\lib\spark\spark_utils.php on line 46
←[1;36m[ SPARK ]←[0m Spark installed to ./sparks/autoform/3.8.1 - You're on fire
!

Only i'm not "on fire", just an empty folder structure...


problem installing sparks from command line - El Forum - 05-15-2012

[eluser]Ayeyermaw[/eluser]
Are you running CMD in administrator mode? Might be due to permissions.


problem installing sparks from command line - El Forum - 05-15-2012

[eluser]bulmer[/eluser]
Thanks Ayeyermaw. Yes, its used in Admin Mode.
Looking at the first line of the warning above, it seems like there is a problem with the direction of the slashes in the second part.I think that part of the url string refers to the downloaded and extracted spark zip.I don't know why it has a forward-slash format though....


problem installing sparks from command line - El Forum - 05-30-2012

[eluser]bulmer[/eluser]
I still have no idea why this won't work.....anyone???

Warning: rename(C:\Users\All\AppData\Local\Temp\/spark-24-1336898497/spark.info,
./sparks/autoform/3.8.1/spark.info): No error in E:\UniServer530_codeigniter\www
\tools\lib\spark\spark_utils.php on line 46


problem installing sparks from command line - El Forum - 05-30-2012

[eluser]Ayeyermaw[/eluser]
this one leave me scratching my head. sorry Sad


problem installing sparks from command line - El Forum - 05-31-2012

[eluser]bulmer[/eluser]
Thanks Ayeyermaw.
I have ended up finding a fix for this problem:
I changed the rename() function (in line 46 of \tools\lib\spark\spark_utils.php) to the copy() function, which takes the same parameters. This now works without errors.
I hope this helps someone else on a Local Windows Server.
Cheers.