I am a newbie with sqlite3 and trying to use it in windows 10. At first, I download it from website, ofcourse there was no problem. Then I put it at C:\, the name of the folder was sqlite3.
Then I add this code into environment variable : C:\sqlite3, I thought that it could help sqlite run.
Then, I tried to run sqlite3 by this code C:\sqlite3, but I could not run it.
I am very confuse, could you please give me some ideas? Thank you very much.
Related
I've been trying to build a CordApp and I downloaded the template from GitHub. The code that I've written is available on the following link:
https://github.com/shanmukhipriya99/taskcordapp
When I'm trying to run gradlew.bat deployNodes in the cmd terminal, this is what I got:
[gradlew.bat deployNodes]
Then when I run build\nodes\runnodes in the cmd terminal, this is what I got:
[build\nodes\runnodes]
Then I have three other terminal windows opening-up, they load the Corda part, show some red text that says something about the developer mode and all the node terminals get closed automatically before I'm able to read the entire text.
Can someone please help me in figuring out where I'm wrong!?
Thanks in advance!
It looks like you have had successfully started the nodes all in one terminal. I am not entirely sure, if this is the only issue, but I have seen this issue before. This is caused by lack of permission of the Terminal.
I have seen it happened for both Windows and Unix/Macos users. To resolve it you might need to grant the permission to Terminal manually.
If it still does not work out, I would actually suggest the alternative quick fix that Ashutosh mentioned in comment. Open a new tab and go to the root folder of each nodecd /build/nodes/XXX, and start the node manually via java -jar corda.jar
I actually do not know how I messed things up with meteor, I did not touch anything related to meteor for all I know. Today all of a sudden my text editor, Atom stopped opening. This required me to spend all day to search for reasons why it didn't work and eventually I got it working again but I had to delete a lot of files related to Atom. After I got Atom up and working again, I went to run my app, but it did not run. Instead, game me an error that is super long:
Error: SQLITE_CORRUPT: database disk image is malformed
and also gives some other unreadable text. But it does say something about the promise_server.js:218 file. I also read on this forum that you can use a command like rm rf or something like that I cannot find the forum where it said that again.... but it did not work. I have run out of possible solutions, if you know what is going on, pls help. Thanks in advance!
That should help:
cd <your_meteor_project_folder>
rm -rf ./.meteor
Then restart your meteor app.
Using sqlite3 you can repair the DB.
cd ~/.meteor/package-metadata/v2.0.1
sqlite3 packages.data.db .dump > backup
mv packages.data.db packages.data.db.bustedX
sqlite3 packages.data.db < backup
rm backup
Essentially, even though the DB reports as corrupt. The SQLite tool can dump it and then recreate it.
If I want to edit & rerun the previous command in sqlite3, presently I have to retype the query from scratch. It doesn't seem to support the 'arrow key' method you often get in terminal programs.
Running on Ubuntu.
Am I missing something?
In windows and ubuntu up key works fine.
Readline support must be enabled. Clean easy solution is here:
https://superuser.com/a/82447/87610
I installed oracle 11g and im was trying to open sqlplus from command prompt but it is opening and closing in a fraction of second..I tried opening the sqlplus from the installed location as well. It still shows the same behaviour. Can anyone help me with a solution. I already uninstalled and installed the oracle twice for some other errors. Earlier it was working fine, but when I installed it the second time, sql plus is not opening .
I appreciate any advice.
Thanks
Manasa,
If the error message reads
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
as you stated then the answer can depend on what OS you are using. Let's say you are using some flavor of windows, you can go to the system properties -> advanced tab -> environment variables -> system variables and check the variables ORACLE_HOME and PATH.
Let's say that you installed oracle at C:\oracle\ora11\
In the PATH variable, among other values, you need to have the location of oracle bin directory; in this instance:
'C:\oracle\ora11\bin;'
Now, I should note that when oracle references the path variable, it looks for the first instance of an oracle path. So let's say you had two installations of oracle at the following locations:
'C:\oracle\ora9i\'
'C:\oracle\ora11\'
And the path variable was set like so:
'C:\oracle\9i\bin;C:\oracle\ora11\bin;'
The result would be so that when you open sqlplus, it would automatically reference the sqlplus program located at 'C:\oracle\9i\bin\' - whichever version that may be. (this would also be true for any oracle utility found in the bin directory such as DBCA or expdp) (this is also assuming you are note explicitly declaring which sqlplus you want to run i.e. you just type 'sqlplus' in a command prompt rather than 'c:\oracle\ora11\bin\sqlplus')
The oracle_home variable would be set to 'C:\oracle\ora11\' however i'll note that my windows 7 desktop version runs fine with this value null. It is, however, not a production desktop as you would imagine.
Run SQLPLUS.exe as administrator. You might have rights issue.
Thanks
shah
First off, I will acknowledge that I am aware of another similar thread on the topic of wkhtmltopdf, but it was not similar enough to resolve my issue. Here's the other thread: wkhtmltopdf
Second, I will say that I have successfully used wkhtmltopdf with a Drupal site on a dedicated server that I run, where I installed the libX11 and used the most recent static version of wkhtmltopdf. That's on a CentOS 5 system and it runs nicely.
So, I have another hosting arrangement and I need to get the wkhtmltopdf to work, because it does the most amazing job producing bookmarked PDFs. The PDFs are beautiful.
The hosting is cPanel. I determined that it is on a server that has CentOS 5.5. It is not a problem to drop the static wkhtmltopdf in the print module's lib folder. However, I get the following message back in the Drupal admin status reports page (admin/reports/status).
It says,
"wkhtmltopdf library
The currently selected version of wkhtmltopdf () is not supported. Please update to a newer version."
I have obtained all of the needed .so files for CentOS 5, based on what jockie provided in his answer in the other StackOverflow thread.
Can someone knowledgeable confirm that his list was complete?
The idea of a shell script wrapper seems interesting and appears could be done for Drupal, if the naming of the shell script is called something like "wkhtmltopdf-wrapper.sh".
I have tried to use the shell script code that jockie provided, in a shell script. I did place all of the .so files in a sub-folder called "lib". I confess that I do not know what such things mean, in the script:
export HOME="$PWD"
Can someone interpret for me, what $PWD means?
export LD_LIBRARY_PATH="$PWD/lib/"
I understand that the script is going to get the .so files with that line, yes?
And can someone interpret the following line:
exec $# 2>/dev/null
What I am wondering is, where does the actual pdf get output? I did run the script. It did not throw any errors. However, I did not see a resulting PDF file.
Also, jockie's directions are not totally clear or defined enough. He says, "(some of them are symlinks)" under the list of .so files. Are such lines (in his list), the symlinks?:
lib/libX11.so.6 lib/libX11.so.6.2.0
Or am I mistaken? I was able to get all of them, so I don't know why they would be symlinks. The only thing is, that some of the versions are different. Do I need to delete the following files and make symlinks instead?:
lib/libX11.so.6
lib/libXau.so.6
lib/libxcb.so.1
lib/libXext.so.6
Should the shell script code be written differently, with Drupal in mind?
Thanks for reading and I hope someone can help!
...Finally, if anyone knows of a better solution, please share! Again, I appreciate the help!
...There does not seem to be a way, here on StackOverflow.com to notify jockie to check out this thread. I wish there was a way to write to them or notify them, so that they could clarify for them-self or contribute to this thread as well. If someone knows of a way, please let me know that too!