Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
Here is my problem
Eclipse only recognizes my version 7 of tomcat ...
However it remains a mistake ... it does not find the jre. Ideas ?
I assume that you've already do that but if you get this issue, it means you certainely make wrong in one of these steps. So let me describe steps:
Go to tomcat site's download page for version 8: http://tomcat.apache.org/download-80.cgi
Download the desired version (in this case, 8.5.15) for linux so the tar.gz in the Core sub-part. Manually or with curl (before that, move in the folder you want to download the compressed package):
cd /tmp (for example)
curl -O http://www-eu.apache.org/dist/tomcat/tomcat-8/v8.5.15/bin/apache-tomcat-8.5.15.tar.gz
Verify integrity of the downloaded tar.gz with MD5 or SHA1 (optional but it sometimes reserves a few surprises)
Uncompress the package where you want so:cd /usr/local and tar zxvf apache-tomcat-8.5.15.tar.gz
Make sure the JAVA_HOME variable is correctly defined because Tomcat needs it to work
Add a new server runtime so: Windows>Preferences>Server>Runtime Environment
Then, add button. Select "Apache Tomcat v8.5" on the list. Next, then browse to select the correct directory /usr/local/* . Actually, you need to choose the directory which directly contains bin, conf, lib and so on.
And it will work fine
Let me know if you fix the problem or if it persists.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I'm using Eclipse with Perl (ActivePerl) on a PC without an Internet connection. It was quite tricky to add EPIC Perl into Eclipse, but this works fine.
Now I'd like to add the PadWalker debugger to my Perl installation - but I need an offline installer.
I found some information at:
http://perlmaven.com/padwalker
How do I install PadWalker using CPAN (cpan PadWalker) or PPM (ppm install PadWalker), but it is only specified for online installation.
Even the hint with the proxy system variable (incl. username + password) doesn't work, as there isn't any Internet connection on this PC.
So wherefrom can I get an offline installer for PadWalker? Or wherefrom can I download a ZIP archive to put it to the local repository that can be defined within the PPM (Perl package manager)?
Here's a quick version.
Go to any facility that has an Internet connection, and search CPAN for PadWalker.
The latest version is v2.2 and is documented here.
On the right of that page is a link to the latest gzipped release, currently PadWalker-2.2.tar.gz.
Copy that file to your target system.
You should download that file and follow the directions in perldoc perlmodinstall, which are essentially:
Unzip the compressed file
Unpack the tar contents
cd to the unpacked directory, and do
perl Makefile.pl
make test
And, if the tests were successful
make install
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I would like to put a requirements.txt file in my virtual environment. The two ways I have thought about are making a txt file and then moving it to the correct directory (I do not know how to find the directory: when I type workon, the PathToScripts and PathToSitePackages says C:\Users\A.virtualenvs...) and making a requirements.txt file once I am in the directory (I know not how to make a file while in the correct directory). Are any of my ideas a good way to go about solving this problem? Is there a better way to do this?
The normal thing to do is to put the requirements.txt file in the the root of your application source code. This way you can place it under version control with the rest of your application artifacts. That's what virtualenvwrapper expects you to do. It's why virtualenvwrapper distinguishes between the directories where the virtual environments are created and the working directory you specify when creating one. I understand why you might want to put requirements.txt in with the virtual environment, but it's not the usual way.
There might be a way to specify that the virtual environment directory be the same as the working directory. You could try specifying that the working directory be the same as where the virtual environment gets built when you create it, our again you could edit the file after the fact. But it's not really the way people usually do things.
You'll have to look in the docs for the directory where the vms are created for the os you're using. Under Linux they get get put into a hidden directory in your home.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I used maven to download mahout and hadoop recently. Because I could not seem to do that without using sudo mvn commands, eclipse could not seem to be able to use anything I had downloaded (there were lots of errors like parents of things like POM.xml being permission denied etc.) and more recently than that I was trying out mahout (with local jars downloaded directly from one of apache's mirrors, not from maven) and although I could run the class the first time, I couldn't do it again because my eclipse instance could not overwrite the file I had already written.
These are just examples of times I feel it would have been good to be running eclipse as superuser by doing
sudo eclipse
Instead of just launching it normally. The only problem I can think of is that as root eclipse suggests you use the root/workspace, but is it ok to just tell it to use yourusername/workspace?
In general- no. It's tempting, but not very good practice to do all of your development as the superuser. If you're running Eclipse as root, then you're also launching Java processes as root when you run your software. (You could change your Java run settings to sudo back to a regular user before running, but I wouldn't recommend that as a solution).
In addition to being a security risk, you are also making it difficult to track down bugs if you want to distribute the software to others to run as non-root (e.g. doing root only things like reading a protected file or using a well known port might work for you, but not for the average user).
I recommend finding the files that are causing issues and doing chmod o+r on them.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
As the question states how to instruct WGET to only download the same file if the existing one is older
e.g. fileA has a date / file stamp of 9.00AM 10/10/2011
e.g. fileA on the remote server has a date / file stamp of 11AM 10/10/2011
so wget will download FileA on the server as its newer (and overwrite the local file)
Any help would be greatly appreciated, I have heard this is possible, but after looking around for a while I havn't come up with anything
Take a look at the timestamping section in the wget manual:
Time-Stamping
One of the most important aspects of
mirroring information from the
Internet is updating your archives.
Downloading the whole archive again
and again, just to replace a few
changed files is expensive, both in
terms of wasted bandwidth and money,
and the time to do the update. This is
why all the mirroring tools offer the
option of incremental updating.
Such an updating mechanism means that
the remote server is scanned in search
of new files. Only those new files
will be downloaded in the place of the
old ones.
A file is considered new if one of
these two conditions are met:
A file of that name does not already
exist locally.
A file of that name
does exist, but the remote file was
modified more recently than the local
file.
To implement this, the program
needs to be aware of the time of last
modification of both local and remote
files. We call this information the
time-stamp of a file.
The time-stamping in GNU Wget is
turned on using ‘--timestamping’
(‘-N’) option, or through timestamping
= on directive in .wgetrc. With this option, for each file it intends to
download, Wget will check whether a
local file of the same name exists. If
it does, and the remote file is not
newer, Wget will not download it.
If the local file does not exist, or
the sizes of the files do not match,
Wget will download the remote file no
matter what the time-stamps say.
wget -N http://server/path/to/file.txt
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have installed WAMP 2.1 on Windows 7 with PHP-5.3.4 and Apache-2.2.17 but instead of MySQL I'm using PostgreSQL version 8.4.
How can configure PostgreSQL on WAMP?
I have solved the problem by
adding php_pgsql and php_pdo_pgsql extensions
adding path-php in PATH environment variable of Windows
Install PostgreSQL
Edit php.ini, uncomment “extension=php_pgsql.dll”. Check both the
php.ini in the PHP folder and Apache folder
Edit environment variables, add PostgreSQL /bin and /lib directories
to Path. This solves the issue of php_pgsql.dll not loading due to
it not being able to resolve dependencies.
Done. PHP should now be able to communicate with PostgreSQL.
Don't forget that WAMP has two php.ini files. One in Apache directory, one in php directory (bin\php\php5.X.X). Wampserver Tray manages the one in Apache directory.
To be able to run php cli tools (e.g php artisan), you need to uncomment the php_pgsql and php_pdo_pgsql in the php.ini in php directory.
What you are looking for is WAPP. It's a package similar to WAMP but with PostgreSQL instead of MySQL (and PhpPgAdmin instead of PhpMyAdmin)
The Best Way is add location of PHP Instalation to Environment Path of Windows
Control Panel -> System And Security -> System -> Advanced System Settings -> Environment Variables.
Under "System Variables" add PHP Installation Dir for "Path" Variables.
Then Restart Apache Web Service
This way is work for me (Windows 7 32 Bit, Apache 2.2, PHP 5.4)