I saw that : Installing phpDocumentor using PEAR (2013)
AND I used the official doc : https://docs.phpdoc.org/latest/getting-started/installing.html
AND I try this issue : https://github.com/phpDocumentor/phpDocumentor/issues/2113
From Doc :
When i try :
1 | pear channel-discover pear.phpdoc.org
2 | pear install phpdoc/phpDocumentor
The result :
1 | Channel "pear.phpdoc.org" is already initialized
2 | No releases available for package "pear.phpdoc.org/phpDocumentor"
2 | install failed
From Issue :
Let's try issue :
1 | wget https://pear.phpdoc.org/channel.xml
2 | pear channel-update ./channel.xml
3 | pear install http://pear.phpdoc.org/get/phpDocumentor-2.9.0.tgz
The result :
1 | 200 OK
1 | « channel.xml.1 » saved
2 | Update of Channel "pear.phpdoc.org" succeeded
3 | phpDocumentor-2.9.0.tgz
3 | Could not download from "http://pear.phpdoc.org/get/phpDocumentor-2.9.0.tgz" (File
3 | http://pear.phpdoc.org:80/get/phpDocumentor-2.9.0.tgz not valid (received: HTTP/1.1 308 Permanent 3 3 | Redirect))
3 | Invalid or missing remote package file
3 | install failed
I find a solution here : Windows - PHPDocs unable to install through Pear
So we need to extract the package to a temporary directory, call it uncompressedpackagedir if you want. In uncompressedpackagedir you'll see a package.xml which you will need to copy or move into the newly created directory named for the package you extracted. In the case of phpDocumentor v2.8.2 it will be named phpDocumentor-2.8.2. cd into that directory and do "$ sudo pear installl package.xml
But when i run phpdoc --version i get an error (require_once Fatal error: failing to open stream, saying no such file or directory ... Bootstrap.php)
so I give up pear and i use .phar installation as described at documentation on github : https://github.com/phpDocumentor/phpDocumentor#using-the-phar
Related
I need HELP
I have two major errors in creating my first substraste chain (cf. https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/setup)
Error in Installing the Front-End Template
~/Bureau/ETH-BIT/substrate/substrate-front-end-template$ ls LICENSE
package.json public README.md src yarn.lock
pclf#ubuntu:~/Bureau/ETH-BIT/substrate/substrate-front-end-template$
yarn install
ERROR: [Errno 2] No such file or directory: 'install'
Error in compiling Substrate
cargo build --release
error: failed to run custom build command for node-template-runtime v2.0.0 (/home/pclf/Bureau/ETH-BIT/substrate/substrate-node-template/runtime)
Caused by: process didn't exit successfully:
/home/pclf/Bureau/ETH-BIT/substrate/substrate-node-template/target/release/build/node-template-runtime-663c8dc25926c960/build-script-build
(exit code: 1) --- stdout Executing build command: "rustup" "run"
"nightly" "cargo" "rustc" "--target=wasm32-unknown-unknown"
"--manifest-path=/home/pclf/Bureau/ETH-BIT/substrate/substrate-node-template/target/release/wbuild/node-template-runtime/Cargo.toml" "--color=always" "--release"
--- stderr
Compiling wasm-build-runner-impl v1.0.0 (/home/pclf/Bureau/ETH-BIT/substrate/substrate-node-template/target/release/wbuild-runner/node-template-runtime4021631938540302808)
Finished release [optimized] target(s) in 7.49s
Running /home/pclf/Bureau/ETH-BIT/substrate/substrate-node-template/target/release/wbuild-runner/node-template-runtime4021631938540302808/target/x86_64-unknown-linux-gnu/release/wasm-build-runner-impl
Compiling sp-arithmetic v2.0.0
Compiling sp-io v2.0.0
Compiling sp-inherents v2.0.0
Compiling frame-metadata v12.0.0
Compiling sp-finality-tracker v2.0.0 error[E0282]: type annotations needed
--> /home/pclf/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-arithmetic-2.0.0/src/fixed_point.rs:541:9
| 541 | let accuracy = P::ACCURACY.saturated_into();
| ^^^^^^^^ consider giving accuracy a type ... 1595 | / implement_fixed!( 1596 | | FixedI64,
1597 | | test_fixed_i64, 1598 | | i64, ... | 1601 | |
"Fixed Point 64 bits signed, range = [-9223372036.854775808,
9223372036.854775807]", 1602 | | );
| |__- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0282]: type annotations needed
--> /home/pclf/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-arithmetic-2.0.0/src/fixed_point.rs:541:9
| 541 | let accuracy = P::ACCURACY.saturated_into();
| ^^^^^^^^ consider giving accuracy a type ... 1604 | / implement_fixed!( 1605 | | FixedI128,
1606 | | test_fixed_i128, 1607 | | i128, ... | 1611 |
| [-170141183460469231731.687303715884105728,
170141183460469231731.687303715884105727]_", 1612 | | );
| |__- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0282]: type annotations needed
--> /home/pclf/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-arithmetic-2.0.0/src/fixed_point.rs:541:9
| 541 | let accuracy = P::ACCURACY.saturated_into();
| ^^^^^^^^ consider giving accuracy a type ... 1614 | / implement_fixed!( 1615 | | FixedU128,
1616 | | test_fixed_u128, 1617 | | u128, ... | 1621 |
| [0.000000000000000000,
340282366920938463463.374607431768211455]_", 1622 | | );
| |__- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 3 previous errors
For more information about this error, try rustc --explain E0282.
error: could not compile sp-arithmetic
error: build failed
You can just run yarn in the front end template directory, it will work. But where is the "Is LICENCE public" message coming from? You shouldn't see that. Did you clone the substrate-front-end-template repo or just create the directory? The exact process is:
clone it with git clone https://github.com/substrate-developer-hub/substrate-front-end-template
enter folder with cd substrate-front-end-template
run yarn
As for the Substrate compilation error, please downgrade your nightly to an older version, it happens due to a bug in Rust. Here is how to do that:
rustup uninstall nightly
rustup install nightly-2020-10-01
rustup target add wasm32-unknown-unknown --toolchain nightly-2020-10-01
First thing first solve the Substrate compiling first.
run this scrip
https://github.com/substrate-developer-hub/substrate-node-template/blob/master/scripts/init.sh
When you get the node up and running then start using frontend.
I have the following directory structure:
Application
|
--- Project 1
|
--- Project 2
|
--- Application_install_requirements
|
-- environment.yml
|
-- otherdependency
|
--otherdependency.whl
The environment.yml looks like:
name: Application_env
channels:
- defaults
- conda-forge
dependencies:
- python=3.6.5
....
- pip:
- recordclass
- keyboard
- otherdependency/otherdependency.whl
....
- -e git+git#bitbucket.org://git.repo/some_pkg.git#egg=Project1
I want to be able to pip install an editable of Project 1 that I can do version control through Application/Project 1/src. If possible, I would like it so this can be done through the conda environment.yml specifications and conda env update.
When I run conda env update -f "Application/Application_install_requirements/environment.yml" I get the desired src directory under Application_install_requirements, not Project 1. This makes the system work, but I have to go to Application/Application_install_requirements/src/Project 1/src to edit,
not the desired Application/Project 1/src.
Result:
Application
|
--- Project 1
|
--- Project 2
|
--- Application_install_requirements
|
-- environment.yml
|
**-- src**
|
-- otherdependency
|
--otherdependency.whl
Desired:
Application
|
--- Project 1
| |
| **-- src**
|
--- Project 2
|
--- Application_install_requirements
|
-- environment.yml
|
-- otherdependency
|
--otherdependency.whl
I do not want Application_install_requirements to be inside Project 1 because it contains dependencies for Project 2 as well.
Per the documentation on pip's https://pip.pypa.io/en/latest/reference/pip_install/#vcs-support:
"For editable installs, the clone location by default is <venv path>/src/SomeProject in virtual environments, and <cwd>/src/SomeProject for global installs. The --src option can be used to modify this location."
Here's what I've tried:
1.
conda activate Application_env,
cd into the Application/Project 1 directory,
run conda env update -f ".../path/to/environment.yml"
I hoped this would trigger the < cwd >/src/SomeProject default, but it didn't. It also didn't install src in < venvpath >/src/SomeProject; it installed it in Application_install_requirements, where the environment.yml file is.
2.
Add a --src option to the environment.yml to specify where to install the src editable files.
New environment.yml:
name: Application_env
channels:
- defaults
- conda-forge
dependencies:
- python=3.6.5
....
- pip:
- recordclass
- keyboard
- otherdependency/otherdependency.whl
....
- -e git+git#bitbucket.org://git.repo/some_pkg.git#egg=Project1 --src=<pathtoapplication>/Project 1
and then run conda env update -f "/Application_install_requirements/environment.yml"
Conda failed to install src in any directory through pip as seen by the terminal output:
###
Pip subprocess output:
#
# To activate this environment, use
#
# $ conda activate Application_env
#
# To deactivate an active environment, use
#
# $ conda deactivate
###
3.
Manually move the src folder from Application_install_requirements to Project 1 and edit the file < venv_path >/Lib/site-packages/Project 1.egg-link, which is just a file with the name of the address where src is installed from:
<path to>/Application/Application/install_requirements/src
to
<path to>/Application/Project 1/src
This didn't work, as the installed package still looked for the src in the originally installed folder.
I am trying to install Pygraphviz for Python 3.5 x86 under Windows 7 x64
After trying to install I am getting the error indicated here
https://github.com/Kagami/pygraphviz/commit/fe442dc16accb629c3feaf157af75f67ccabbd6e
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo
/INCREMENTAL:NO "/LIBPATH:C:\Program Files (x86)\Graphviz2.38\lib\debug\lib" /L
IBPATH:C:\winpy\python-3.4.3\libs /LIBPATH:C:\winpy\python-3.4.3\PCbuild cgraph.
lib cdt.lib /EXPORT:PyInit__graphviz build\temp.win32-3.4\Release\pygraphviz/gra
phviz_wrap.obj /OUT:build\lib.win32-3.4\pygraphviz\_graphviz.pyd /IMPLIB:build\t
emp.win32-3.4\Release\pygraphviz\_graphviz.lib /MANIFESTFILE:build\temp.win32-3.
4\Release\pygraphviz\_graphviz.pyd.manifest
Creating library build\temp.win32-3.4\Release\pygraphviz\_graphviz.lib and ob
ject build\temp.win32-3.4\Release\pygraphviz\_graphviz.exp
graphviz_wrap.obj : error LNK2019: unresolved external symbol _PyIOBase_Type ref
erenced in function __wrap_agread
build\lib.win32-3.4\pygraphviz\_graphviz.pyd : fatal error LNK1120: 1 unresolved
externals
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\
link.exe' failed with exit status 1120
At the bottom of that thread there is a reference to a patch that has to be applied to the pygraphviz package and then I guess I will have to install it from source
My question is: How do I use patch in Windows ?
Update: I have downloaded patch for windows and the patch file
I have put them in the same folder with the source package -see the picture
Now I need the find the right command line switches for this
A dry run (patch --dry-run < fixpygraphviz.patch ) gives me this error
can't find file to patch at input line 16
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|From fe442dc16accb629c3feaf157af75f67ccabbd6e Mon Sep 17 00:00:00 2001
|From: Kagami Hiiragi <kagami#genshiken.org>
|Date: Mon, 4 Aug 2014 21:57:54 +0400
|Subject: [PATCH] Workaround for PyIOBase_Type for Python3 on win
|
|Fixes #16
|---
| pygraphviz/graphviz.i | 23 +++++++++++++++++++++--
| pygraphviz/graphviz_wrap.c | 24 +++++++++++++++++++++---
| 2 files changed, 42 insertions(+), 5 deletions(-)
|
|diff --git a/pygraphviz/graphviz.i b/pygraphviz/graphviz.i
|index 8c06805..55e5b6d 100644
|--- a/pygraphviz/graphviz.i
|+++ b/pygraphviz/graphviz.i
--------------------------
File to patch:
patch -px -i patchfilename
where x indicates how many levels of folders to skip from the path indicated in the patch file. In my case it was p1 which meant that patch should look for "folder/filename" and not for "folder/folder/filename" as indicated in the patch file.
I have installed GMP on ubuntu. I download GMP-6.1.2 from "https://gmplib.org".Then I extracted it in Home folder and installed like:
1. cd gmp-6.1.2
2../configure
3. make
4. sudo make install
5. make check
I checked,gmp was installed in "/usr/local" and I opened omnet and I change these paths:
I entered Properties project:
1. in (c/c++ build | environment | path ), I added :
(/usr/local/include:/usr/local/lib) then I applied.
2. in (c/c++ General | paths and symbols | includes),I added
(/usr/local/include) in assembly, GNU c, GNU C++.then I applied.
At ( (c/c++ General | paths and symbols | Library paths). I added (/usr/local/lib). Then I applied.
Also ( (c/c++ General | paths and symbols | libraries). I wrote "gmpxx" and "gmp". Then I applied.
3. in (omnet++ | Makemake | select "src" folder | select Options |
custom | makefrag ) I added "EXTRA_OBJS=-lgmp". Then I applied them
and OK.
After that,I built my project and I received these errors :
Description Resource Path Location Type
Error refreshing Makefiles: /home/mar/Desktop/omnet_proj/id_2/test_independent/mixim-2.3/src/EXTRA_OBJS=-lgmp (No such file or directory) mixim-2.3 Unknown Makefile Problem
Description Resource Path Location Type
Program "gcc" not found in PATH mixim-2.3 [Discovery Options] page in project properties C/C++ Problem
Description Resource Path Location Type
Program "make" not found in PATH mixim-2.3 C/C++ Problem
I must say I am using MIXIM in Omnet++.
I don't know what is going on?
Could you please help me?
Thank you in advance of your help.
Assuming that you have installed libgmp using sudo apt-get install libgmp3-dev in your OMNeT++ project you have to do:
In header file (*.h) of simple module where you want to use gmp add:
#include <gmp.h>
Go to Project Properties, choose OMNeT++ | Makemake | select src | Options | Custom | Makefrag and write:
EXTRA_OBJS=-lgmp
To check you can add the following code somewhere in your source file, for example in initialize():
mpz_t a, b, c;
mpz_init_set_str(a, "123", 10);
mpz_init_set_str(b, "458", 10);
mpz_init(c);
mpz_add(c, a, b);
char * ctxt = mpz_get_str(NULL, 10, c);
EV << "c=" << ctxt << std::endl; // print the result
mpz_clear(a);
mpz_clear(b);
mpz_clear(c);
I think I can do that.
I have installed gmp in ubuntu. Then I added "gmp.h" and "gmpXX.h" to my project.
After that,I went to project properties | omnet++ | select SRC | Options | link | Additional libraries to link with:(-l option) and I inserted these two Option:
gmpxx , gmp .
Also,I added "/usr/local/include" in "paths and symbols(in project properties) | includes " and "/usr/local/lib" in " paths and symbols | library paths ".
After that,I added "/usr/include" in "paths and symbols(in project properties) | includes " and "/usr/lib/i386-linux-gnu" in " paths and symbols | library paths ".
And I built my project without any error.
At last,I run dear Jurzy D's example without any error.
I did not change any thing else.
After a fairly extensive search, I noticed that a number of people are having a hard time finding a start-to-finish guide that answers this question. (At least one question notes that a solution exists, but the proposed solution does not get around the fact that, by default, RODBC attempts to compile against iODBC, which is not included with Yosemite.) I just went through this process, so I thought I would document it here in the hope that it will benefit others. I am connecting to a SQL Server database.
Using Homebrew as my OS X package manager, I can install RODBC with the following steps (assuming I have already installed R).
Install unixodbc:
$ brew install unixodbc
Install freetds (replacing /usr/local/Cellar/unixodbc/2.3.2_1 with your unixodbc directory, if necessary):
$ brew install --with-tdsver=8.0 --with-msdblib --with-unixodbc=/usr/local/Cellar/unixodbc/2.3.2_1 freetds
Configure your freetds installation (the following is a minimal configuration file):
freetds.conf
# server specific section
[global]
; tds version = 8.0
; dump file = /tmp/freetds.log
; debug flags = 0xffff
; timeout = 10
; connect timeout = 10
text size = 64512
[TESTSQL]
# insert the actual host below
host = <xxx.xx.x.xx>
port = 1433
tds version = 8.0
Test the freetds config:
$ tsql -H `<xxx.xx.x.xx>` -p 1433 -U `<username>` -P `<password>`
locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
1> exit
Configure your unixodbc installation (the following is a minimal configuration file):
$ sudo vim /usr/local/Cellar/unixodbc/2.3.2_1/etc/odbcinst.ini
odbcinst.ini
[MSSQL]
Description = Microsoft SQL Server driver
Driver = /usr/local/Cellar/freetds/0.95.18/lib/libtdsodbc.so
(and another minimal installation file):
$ sudo vim /usr/local/Cellar/unixodbc/2.3.2_1/etc/odbc.ini
odbc.ini
[ODBC Data Sources]
TESTSQL = Test database
[TESTSQL]
Driver = MSSQL
Servername = TESTSQL
Port = 1433
Database = TMSEPRD
TDS_Version = 8.0
Test the new configuration with isql:
$ isql TESTSQL `<username>` `<password>`
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL> quit
Create a symbolic link to the files in your home directory:
$ ln -vs /usr/local/Cellar/freetds/0.95.18/etc/freetds.conf ~/.freetds.conf
$ ln -vs /usr/local/Cellar/unixodbc/2.3.2_1/etc/odbc.ini ~/.odbc.ini
$ ln -vs /usr/local/Cellar/unixodbc/2.3.2_1/etc/odbcinst.ini ~/.odbcinst.ini
Find and modify your RProfile file by appending the following line(s) of code to the file (replacing /usr/local/include with the include directory that contains your sql.h and sqlext.h files; the second line may be unnecessary if the directory does not exist):
$ vim /Library/Frameworks/R.framework/Versions/3.2/Resources/library/base/R/Rprofile
Sys.setenv(ODBC_INCLUDE="/usr/local/include")
Sys.setenv(ODBC_LIBS="/usr/local/lib")
Now download the RODBC package source (which you an download here) to your Downloads folder.
Open a new R console session and install the package (replacing RODBC_1.3-12.tar.gz with the name of your package source):
install.packages("~/Downloads/RODBC_1.3-12.tar.gz", repos=NULL, type="source")
The package should now work:
> library(RODBC)
> myconn <- odbcConnect("TESTSQL", uid="<userid>", pwd="<password>")
Thanks to Jared Folkins and Gabi Huiber for help with figuring out what directories R looks in by default for the requisite files for RODBC.