I'm trying to set the $PATH to pick up the latest version of pg_dump as I'm currently getting a mismatch error while doing a migrate in my Rails app (I recently changed the schema type to SQL).
I have added a new file in /etc/profile.d called pg_dump.sh, and inside that put:
PG_DUMP=/usr/pgsql-9.1
export PG_DUMP
PATH=$PATH:$PG_DUMP/bin
export PATH
On looking at echo $PATH, I get:
/usr/local/r
I've installed passenger via Apache on Mac OS X Mountain Lion and it's looking sweet. I've managed to get some of my web applications working fine, but I've come across one or two which aren't working.
I've tracked down the problem to mini_magick and that it's looking for and not finding an executable (identify) which I've installed with imagemagick via homebrew.
I'm puzzled by how the path used for finding man pages is set. The "right thing" seems to happen magically.
In my linux machine, path are configured as follows
non-root user:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/java
root user:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
when i tried to
sudo echo $PATH
it shows non-root user path only not root path
but when i put
echo $PATH
in script and tried to execute with sudo, it give
Dear friends,
I have an xCode project that needs to sign an XML file, and in shell I can achieve the result by running this command:
export LD_LIBRARY_PATH=/opt/local/lib; /opt/local/bin/xmlsec1 sign --id-attr:Id infNFe --output /path/to/signed.xml --pkcs12 /path/to/my/p12.pfx --pwd XXXXPASSWORDXXXX --trusted-pem /path/to/my.pem /path/to/unsigned.xml
When installing XMLSEC via Mac Ports, file
LADIES AND GENTELMEN!After 4 hours, 3 breaks, 2 rage-quits, HUNDREDS of screw ups, lunch, and a tiny bit of crying, I present to you my finished bash script:PROMPT_COMMAND="
#LastCommand=\$(fc -nl -1)
function FixPath()
{
local MyName='/u/'\$USER
local TempPath='('\$PWD')'
local Abc='~'
Path=\${TempPath/\$MyName/\$Abc}
PathWidth=\$[\${#Pat
I am trying to use Web Deploy to deploy a site where the Site is rooted on a UNC path instead of a local drive. This is because I want to have a shared configuration, and have all servers point to the same UNC for content. That would allow me to deploy to one server and have all servers updated at the same time. I've created a share with everyone and users read/write.
When distributing a custom utility I'll typically write a makefile that installs binaries to /usr/local by default
PREFIX ?= /usr/local
MANPREFIX ?= ${PREFIX}/man
install:
install utility ${PREFIX}/bin/
install utility.1 ${MANPREFIX}/man1/
The path to local binaries is fairly standard across different platforms, but the man path is not
Linux: /usr/local/share/man or /usr/local/man
Ma
I've tried to deploy a small website (ASP.NET) which is using an MS ACCESS 2010 db. Deploying the website on the server I get the following error:
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
Connectionstring used : Provider=Microsoft.ACE.OLEDB.12.0; Data Source=path-to-db
MS Office is not installed on the server and neither is the Access Database engine.