terminal

Terminal displays wrong php version (Snow Leopard)

点点圈 提交于 2019-12-21 15:33:33
问题 Need to downgrade php to 5.2.x, so I followed this tutorial: http://andreys.info/blog/2010-03-25/compile-php-5-2-on-osx-10-6-snow-leopard#comment-631 I'm on snow leopard 10.6.4, with xcode installed. So I compiled php5.2.x and completed the tutorial. phpinfo() loaded within the browser at htp://localhost says 5.2.x, Great!! But, Terminal command "php --version" says 5.3.x ?? While compiling/installing php5.2.x, the new module file replaced the php5.3.x module here: /usr/libexec/apache2

Run DynamoDB Local with the java command on Mac OS X

試著忘記壹切 提交于 2019-12-21 12:36:55
问题 I'm trying to run DynamoDB local on a MAC. The Amazon official blog says I have to download the jar file and run the following command: $ java –Djava.library.path=. -jar DynamoDBLocal.jar But I got the following error on MAC OS X terminal: Error: Could not find or load main class –Djava.library.path=. Wut? The command seams not to recognise the -D parameter.. why? I'm also working on Linux (Fedora) and I never had any problem with it. On MAC OS X, java -version gives me java version "1.8.0_11

Meteor will not run without Sudo?

不羁的心 提交于 2019-12-21 12:29:30
问题 On OSX Yosemite and the latest version of meteor (1.0.1), no matter how many times I uninstall and reinstall it, I can't seem to get it running without sudo. My user account is an administrator account. But meteor refuses to run without sudo. The errors I'm getting are all: -bash: meteor: command not found I've seen a few posts on here with similar problems. I've tried repairing disk permissions with disk utility. I've tried: sudo chown -R $myUsername /usr/local/bin/meteor I'm not sure what

RVM set ruby default, when open new terminal erase the RVM setting, go back to system ruby

余生长醉 提交于 2019-12-21 12:09:12
问题 I just got a new MacBook Pro and tried to setup the RVM in the system. I installed RVM and set the default to ➜ rvm list default Default Ruby (for new shells) ruby-1.9.3-p194 [ x86_64 ] My RVM version is ➜ rvm --version rvm 1.16.8 (master) by Wayne E. Seguin , Michal Papis [https://rvm.io/] I have put [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. at the bottom of the .bashrc_profile . When I open the new Terminal window, I have

How to let csvkit/csvsql generate insert statements for csv file?

China☆狼群 提交于 2019-12-21 09:27:30
问题 I want to generate sql insert statements for some csv file. I can do this using a one-liner awk script such as: awk -F "\t" '{printf("INSERT INTO T_COMMON_ENUM_VALUE (id,name,category_id) values (%s, '\''%s'\'', %s, %s);\n", $1, $2, $3, $4)}' But this still requires some effort. csvsql inside csvkit seems to generate insert statements automatically. I checked the documentation and used the following command but it doesn't generate insert statements. $ cat data02.csv db_enumvalue_id db

VSCode terminal previous commands

别等时光非礼了梦想. 提交于 2019-12-21 09:21:35
问题 I've been using the integrated terminal in Visual Studio Code a lot since it was added, but I noticed a very frustrating feature/bug. I am using the Windows 10 Bash terminal, and cannot seem to access the previous command history by using the "Up" arrows. Did this get remapped to another key or does it simply not work? 回答1: Found the answer by accident, after accidentally hitting a few keys. It seems the most common commands have been mapped to the following defaults: Previous Command: Ctrl +

How do I set Terminal scripts to run at start up on Mac OS X Snow Leopard?

空扰寡人 提交于 2019-12-21 07:56:35
问题 Hello I'm using Mac OS X 10.6.8. How can I set some simple Terminal commands to run on start up as if I was opening up Terminal and putting those commands in myself? I basically need to start a few server daemons on start up. The commands I use in Terminal to manually start them look like sudo ruby myrubyserverscript_control.rb start . I apologize in advance if this is super obvious or already answered on here a million times in some way I don't know enough to recognize. 回答1: Here are two

Too many levels of symbolic links osx Lion

独自空忆成欢 提交于 2019-12-21 06:04:11
问题 i'm try to install a libraries but when the make file try to attempt to Developer folder it appear message Too many levels of symbolic links. So i try: Go home folder (cd /) then i try: bash-3.2# cd Developer and this is the output: bash: cd: Developer: Too many levels of symbolic links what could be the problem? can you help me? ls -l says me lrwxr-xr-x 1 root wheel 10 14 Mar 09:13 Developer -> /Developer 回答1: If go to: cd / and ls -la outputs: lrwxr-xr-x 1 root wheel 10 14 Mar 09:13

Too many levels of symbolic links osx Lion

橙三吉。 提交于 2019-12-21 06:03:21
问题 i'm try to install a libraries but when the make file try to attempt to Developer folder it appear message Too many levels of symbolic links. So i try: Go home folder (cd /) then i try: bash-3.2# cd Developer and this is the output: bash: cd: Developer: Too many levels of symbolic links what could be the problem? can you help me? ls -l says me lrwxr-xr-x 1 root wheel 10 14 Mar 09:13 Developer -> /Developer 回答1: If go to: cd / and ls -la outputs: lrwxr-xr-x 1 root wheel 10 14 Mar 09:13

how i can open different linux terminal to output differnt kinds of debug information in python?

柔情痞子 提交于 2019-12-21 05:50:23
问题 I need output different information to different terminal instances instead of print them in same output stream, say std.err or std.out. for example: I have 5 kinds of information say A-E need to be displayed on different terminal windows on same desktop, looks like [terminal 1] <- for displaying information A [terminal 2] <- for displaying information B [terminal 3] <- for displaying information C [terminal 4] <- for displaying information D [terminal 5] <- for displaying information E I